From 64e17a26ca92c20455f92965272d327b5b41e7ea Mon Sep 17 00:00:00 2001 From: Bo Lindbergh 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