X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/5d935dce63ae975db0efc23e3d94c32b17424444..3caafdfd2fd654e3d610c62116081697eee02ea1:/options.c diff --git a/options.c b/options.c index 4331fc65..63a9e12c 100644 --- a/options.c +++ b/options.c @@ -329,7 +329,7 @@ void usage(enum logcode F) rprintf(F," -A, --acls preserve ACLs (implies --perms)\n"); #endif #ifdef SUPPORT_XATTRS - rprintf(F," -X, --xattrs preserve extended attributes (implies --perms)\n"); + rprintf(F," -X, --xattrs preserve extended attributes\n"); #endif rprintf(F," -o, --owner preserve owner (super-user only)\n"); rprintf(F," -g, --group preserve group\n"); @@ -1190,7 +1190,6 @@ int parse_arguments(int *argc, const char ***argv, int frommain) case 'X': #ifdef SUPPORT_XATTRS preserve_xattrs++; - preserve_perms = 1; break; #else snprintf(err_buf,sizeof(err_buf), @@ -1981,7 +1980,7 @@ char *check_for_hostspec(char *s, char **host_ptr, int *port_ptr) if (p[1] == ':') *port_ptr = atoi(p+2); } else { - if ((p = strchr(s, ':')) != NULL) { + if ((p = strchr(s, ':')) != NULL && p < s + hostlen) { hostlen = p - s; *port_ptr = atoi(p+1); }