summaryrefslogtreecommitdiff
path: root/uidlist.c
diff options
context:
space:
mode:
Diffstat (limited to 'uidlist.c')
-rw-r--r--uidlist.c7
1 files changed, 5 insertions, 2 deletions
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;