X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/9742b386b3d5b3010675aef9febaffbf8ab2d2c0..524eaa8245e3d9314055759403ead1fee9e136cc:/options.c?ds=sidebyside diff --git a/options.c b/options.c index b49c1151..1da74e56 100644 --- a/options.c +++ b/options.c @@ -1186,7 +1186,7 @@ int parse_arguments(int *argc, const char ***argv, int frommain) case 'X': #ifdef SUPPORT_XATTRS - preserve_xattrs = 1; + preserve_xattrs++; preserve_perms = 1; break; #else @@ -1677,8 +1677,11 @@ void server_options(char **args,int *argc) argstr[x++] = 'A'; #endif #ifdef SUPPORT_XATTRS - if (preserve_xattrs) + if (preserve_xattrs) { argstr[x++] = 'X'; + if (preserve_xattrs > 1) + argstr[x++] = 'X'; + } #endif if (recurse) argstr[x++] = 'r';