The Samba-Bugzilla – Attachment 9595 Details for
Bug 10381
--acls and --xattrs clash with --delete-missing-args
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Don't try to get ACLs or xattrs for missing files when --delete-missing-args is in effect.
0001-Don-t-try-to-get-ACLs-or-xattrs-for-missing-files.patch (text/plain), 1.02 KB, created by
Bo Lindbergh
on 2014-01-15 11:10:04 UTC
(
hide
)
Description:
Don't try to get ACLs or xattrs for missing files when --delete-missing-args is in effect.
Filename:
MIME Type:
Creator:
Bo Lindbergh
Created:
2014-01-15 11:10:04 UTC
Size:
1.02 KB
patch
obsolete
>From 64e17a26ca92c20455f92965272d327b5b41e7ea Mon Sep 17 00:00:00 2001 >From: Bo Lindbergh <blgl@stacken.kth.se> >Date: Wed, 15 Jan 2014 11:05:02 +0100 >Subject: [PATCH] Don't try to get ACLs or xattrs for missing files when > --delete-missing-args is in effect. > >--- > acls.c | 3 +++ > xattrs.c | 3 +++ > 2 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/acls.c b/acls.c >index 46c5be5..6c8a584 100644 >--- a/acls.c >+++ b/acls.c >@@ -560,6 +560,9 @@ int get_acl(const char *fname, stat_x *sxp) > if (!preserve_devices) > #endif > return 0; >+ } else if (sxp->st.st_mode == 0) { >+ /* a missing file */ >+ return 0; > } > > if (get_rsync_acl(fname, sxp->acc_acl, SMB_ACL_TYPE_ACCESS, >diff --git a/xattrs.c b/xattrs.c >index df2ea82..6b24048 100644 >--- a/xattrs.c >+++ b/xattrs.c >@@ -308,6 +308,9 @@ int get_xattr(const char *fname, stat_x *sxp) > if (!preserve_devices) > #endif > return 0; >+ } else if (sxp->st.st_mode == 0) { >+ /* a missing file */ >+ return 0; > } > > if (rsync_xal_get(fname, sxp->xattr) < 0) { >-- >1.7.8.4 >
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 10381
: 9595