X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/af6241f7adda9fa90fb47b857a5269f2cbcc0319..cbbd8e2e8bf72aa46c84c7de43e19da40f040fa7:/options.c diff --git a/options.c b/options.c index 7972121b..4ac8846d 100644 --- a/options.c +++ b/options.c @@ -1314,7 +1314,13 @@ int parse_arguments(int *argc_p, const char ***argv_p, int frommain) } #endif -#ifndef SUPPORT_XATTRS +#ifdef SUPPORT_XATTRS + if (am_root < 0 && preserve_xattrs > 1) { + snprintf(err_buf, sizeof err_buf, + "--fake-super conflicts with -XX\n"); + return 0; + } +#else if (am_root < 0) { snprintf(err_buf, sizeof err_buf, "--fake-super requires an rsync with extended attributes enabled\n");