The Samba-Bugzilla – Attachment 3872 Details for
Bug 6027
Error when rsync encounters empty symlinks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't send a symlink with an empty target name
empty-link.patch (text/plain), 567 bytes, created by
Wayne Davison
on 2009-01-13 13:53:27 UTC
(
hide
)
Description:
Don't send a symlink with an empty target name
Filename:
MIME Type:
Creator:
Wayne Davison
Created:
2009-01-13 13:53:27 UTC
Size:
567 bytes
patch
obsolete
>--- a/flist.c >+++ b/flist.c >@@ -1249,7 +1249,15 @@ struct file_struct *make_file(const char *fname, struct file_list *flist, > basename_len = strlen(basename) + 1; /* count the '\0' */ > > #ifdef SUPPORT_LINKS >- linkname_len = S_ISLNK(st.st_mode) ? strlen(linkname) + 1 : 0; >+ if (S_ISLNK(st.st_mode)) { >+ linkname_len = strlen(linkname) + 1; >+ if (linkname_len == 0 + 1) { >+ io_error |= IOERR_GENERAL; >+ rprintf(FERROR_XFER, "skipping symlink with no target: %s\n", fname); >+ return NULL; >+ } >+ } else >+ linkname_len = 0; > #else > linkname_len = 0; > #endif
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 6027
: 3872