]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix xattr issue with MIGHT_NEED_PRE.
authorWayne Davison <wayne@opencoder.net>
Wed, 8 Jul 2020 03:07:31 +0000 (20:07 -0700)
committerWayne Davison <wayne@opencoder.net>
Wed, 8 Jul 2020 03:07:31 +0000 (20:07 -0700)
Fixes bugzilla 13113.

xattrs.c

index a7d7d5ab66df84c96806edb75822cdc26d23395c..b10c256766859628f9341919ca28a94bf45536a7 100644 (file)
--- a/xattrs.c
+++ b/xattrs.c
@@ -58,7 +58,7 @@ extern int saw_xattr_filter;
 #define SPRE_LEN ((int)sizeof SYSTEM_PREFIX - 1)
 
 #ifdef HAVE_LINUX_XATTRS
-#define MIGHT_NEED_RPRE (am_root < 0)
+#define MIGHT_NEED_RPRE (am_root <= 0)
 #define RSYNC_PREFIX USER_PREFIX "rsync."
 #else
 #define MIGHT_NEED_RPRE am_root