From: Wayne Davison Date: Wed, 30 Apr 2014 19:34:15 +0000 (-0700) Subject: Fix usermap/groupmap parsing of MIN-MAX IDs. X-Git-Tag: v3.1.1pre2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7665ba5b364e270a1239fda25ca925b19a4716d3;p=thirdparty%2Frsync.git Fix usermap/groupmap parsing of MIN-MAX IDs. --- diff --git a/uidlist.c b/uidlist.c index c00e45aa..641f1477 100644 --- a/uidlist.c +++ b/uidlist.c @@ -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;