diff options
author | Wayne Davison <wayned@samba.org> | 2014-04-30 12:34:15 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2014-04-30 12:34:15 -0700 |
commit | 7665ba5b364e270a1239fda25ca925b19a4716d3 (patch) | |
tree | 6c98217fbedf8b786841c7184f17aa8d4433d274 | |
parent | adc600cbe21bdabc3cfd5e7a01d54390ebd885cb (diff) | |
download | android_external_rsync-7665ba5b364e270a1239fda25ca925b19a4716d3.tar.gz android_external_rsync-7665ba5b364e270a1239fda25ca925b19a4716d3.tar.bz2 android_external_rsync-7665ba5b364e270a1239fda25ca925b19a4716d3.zip |
Fix usermap/groupmap parsing of MIN-MAX IDs.
-rw-r--r-- | uidlist.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -473,12 +473,15 @@ void parse_name_map(char *map, BOOL usernames) usernames ? "user" : "group", cp); exit_cleanup(RERR_SYNTAX); } - if (dash) + if (dash) { + *dash = '\0'; noiu.max_id = id_parse(dash+1); - else + } else noiu.max_id = 0; flags = 0; id1 = id_parse(cp); + if (dash) + *dash = '-'; } else if (strpbrk(cp, "*[?")) { flags = NFLAGS_WILD_NAME_MATCH; noiu.name = cp; |