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