From: Wayne Davison Date: Wed, 8 Jul 2020 03:07:31 +0000 (-0700) Subject: Fix xattr issue with MIGHT_NEED_PRE. X-Git-Tag: v3.2.3pre1~119 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0eb82a7c90285d3927f0d8344a0539e8db8a2959;p=thirdparty%2Frsync.git Fix xattr issue with MIGHT_NEED_PRE. Fixes bugzilla 13113. --- diff --git a/xattrs.c b/xattrs.c index a7d7d5ab..b10c2567 100644 --- 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