The Samba-Bugzilla – Attachment 6748 Details for
Bug 8342
rsync can't handle populate dirs without u+rx permissions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch described in bug 8342
rsync-dir-permissions.patch (text/plain), 676 bytes, created by
Christopher Key
on 2011-08-02 19:02:32 UTC
(
hide
)
Description:
patch described in bug 8342
Filename:
MIME Type:
Creator:
Christopher Key
Created:
2011-08-02 19:02:32 UTC
Size:
676 bytes
patch
obsolete
>diff --git a/generator.c b/generator.c >index da6138a..7806447 100644 >--- a/generator.c >+++ b/generator.c >@@ -1535,8 +1535,8 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, > * permissions during the time we are putting files within them. > * This is then fixed after the transfer is done. */ > #ifdef HAVE_CHMOD >- if (!am_root && !(file->mode & S_IWUSR) && dir_tweaking) { >- mode_t mode = file->mode | S_IWUSR; >+ if (!am_root && !((file->mode & S_IRWXU) == S_IRWXU) && dir_tweaking) { >+ mode_t mode = file->mode | S_IRWXU; > if (do_chmod(fname, mode) < 0) { > rsyserr(FERROR_XFER, errno, > "failed to modify permissions on %s",
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 8342
: 6748