The Samba-Bugzilla – Attachment 3606 Details for
Bug 5778
strlcpy & strlcat are in uClibc
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-Attempt-to-fix-bug-5778.patch (text/plain), 1.50 KB, created by
Volker Lendecke
on 2008-09-21 13:38:15 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2008-09-21 13:38:15 UTC
Size:
1.50 KB
patch
obsolete
>From ac1d3443559e7449471cfafc206ed162cbd7aa3b Mon Sep 17 00:00:00 2001 >From: Volker Lendecke <vl@samba.org> >Date: Sun, 21 Sep 2008 20:39:17 +0200 >Subject: [PATCH] Attempt to fix bug 5778 > >--- > source3/client/mount.cifs.c | 10 ++++++++++ > 1 files changed, 10 insertions(+), 0 deletions(-) > >diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c >index 3b56e5f..b7a76c6 100644 >--- a/source3/client/mount.cifs.c >+++ b/source3/client/mount.cifs.c >@@ -56,6 +56,10 @@ > #endif /* _SAMBA_BUILD_ */ > #endif /* MOUNT_CIFS_VENDOR_SUFFIX */ > >+#ifdef _SAMBA_BUILD_ >+#include "include/config.h" >+#endif >+ > #ifndef MS_MOVE > #define MS_MOVE 8192 > #endif >@@ -94,6 +98,8 @@ char * prefixpath = NULL; > > /* like strncpy but does not 0 fill the buffer and always null > * terminates. bufsize is the size of the destination buffer */ >+ >+#ifndef HAVE_STRLCPY > static size_t strlcpy(char *d, const char *s, size_t bufsize) > { > size_t len = strlen(s); >@@ -104,10 +110,13 @@ static size_t strlcpy(char *d, const char *s, size_t bufsize) > d[len] = 0; > return ret; > } >+#endif > > /* like strncat but does not 0 fill the buffer and always null > * terminates. bufsize is the length of the buffer, which should > * be one more than the maximum resulting string length */ >+ >+#ifndef HAVE_STRLCAT > static size_t strlcat(char *d, const char *s, size_t bufsize) > { > size_t len1 = strlen(d); >@@ -126,6 +135,7 @@ static size_t strlcat(char *d, const char *s, size_t bufsize) > } > return ret; > } >+#endif > > /* BB finish BB > >-- >1.5.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5778
: 3606