Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
We omit copying any user-space rsync.%FOO attributes unless the
[rsync/rsync.git]
/
options.c
diff --git
a/options.c
b/options.c
index
b49c115
..
1da74e5
100644
(file)
--- 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
case 'X':
#ifdef SUPPORT_XATTRS
- preserve_xattrs
= 1
;
+ preserve_xattrs
++
;
preserve_perms = 1;
break;
#else
preserve_perms = 1;
break;
#else
@@
-1677,8
+1677,11
@@
void server_options(char **args,int *argc)
argstr[x++] = 'A';
#endif
#ifdef SUPPORT_XATTRS
argstr[x++] = 'A';
#endif
#ifdef SUPPORT_XATTRS
- if (preserve_xattrs)
+ if (preserve_xattrs)
{
argstr[x++] = 'X';
argstr[x++] = 'X';
+ if (preserve_xattrs > 1)
+ argstr[x++] = 'X';
+ }
#endif
if (recurse)
argstr[x++] = 'r';
#endif
if (recurse)
argstr[x++] = 'r';