samba-add-check-for-__use_bsd.patch 682 B

123456789101112131415161718
  1. --- a/source/client/mount.cifs.c 2009-04-01 13:48:54.000000000 +0200
  2. +++ b/source/client/mount.cifs.c 2009-04-20 12:59:57.000000000 +0200
  3. @@ -100,6 +100,7 @@
  4. /* glibc doesn't have strlcpy, strlcat. Ensure we do. JRA. We
  5. * don't link to libreplace so need them here. */
  6. +#if defined(__GLIBC__) && !(defined(__UCLIBC__) && defined(__USE_BSD))
  7. /* like strncpy but does not 0 fill the buffer and always null
  8. * terminates. bufsize is the size of the destination buffer */
  9. @@ -181,6 +182,7 @@
  10. SAFE_FREE(mountpassword);
  11. exit(EX_USAGE);
  12. }
  13. +#endif /* __GLIBC__ && !(__UCLIBC__ && __USE_BSD) */
  14. /* caller frees username if necessary */
  15. static char * getusername(void) {