X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/581c830c566776ac71f2d012f9960b08cfd0a98d..5df89a1a44af7b5b2ff79fe4cd88a6710373673c:/xattrs.c diff --git a/xattrs.c b/xattrs.c index 85341b37..60c7d7e8 100644 --- a/xattrs.c +++ b/xattrs.c @@ -210,7 +210,7 @@ static int rsync_xal_get(const char *fname, item_list *xalp) size_t datum_len, name_offset; char *name, *ptr; #ifdef HAVE_LINUX_XATTRS - int user_only = am_sender ? 0 : !am_root; + int user_only = am_sender ? 0 : am_root <= 0; #endif rsync_xa *rxa; int count; @@ -294,7 +294,7 @@ int copy_xattrs(const char *source, const char *dest) size_t datum_len; char *name, *ptr; #ifdef HAVE_LINUX_XATTRS - int user_only = am_sender ? 0 : am_root <= 0; + int user_only = am_root <= 0; #endif /* This puts the name list into the "namebuf" buffer. */