From fdc4003d23dfc287380174f219548c12bee07475 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 21 Feb 2019 00:34:54 +0000 Subject: [PATCH] Making deleting users better defined and update documentation --- src/acl.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/acl.c b/src/acl.c index 407d8673..d6c54e00 100644 --- a/src/acl.c +++ b/src/acl.c @@ -1304,7 +1304,7 @@ void ACLLoadUsersAtStartup(void) { * ACL USERS * ACL CAT [] * ACL SETUSER ... acl rules ... - * ACL DELUSER + * ACL DELUSER [...] * ACL GETUSER */ void aclCommand(client *c) { @@ -1332,6 +1332,10 @@ void aclCommand(client *c) { addReplyError(c,"The 'default' user cannot be removed"); return; } + } + + for (int j = 2; j < c->argc; j++) { + sds username = c->argv[j]->ptr; user *u; if (raxRemove(Users,(unsigned char*)username, sdslen(username), @@ -1469,7 +1473,7 @@ void aclCommand(client *c) { "USERS -- List all the registered usernames.", "SETUSER [attribs ...] -- Create or modify a user.", "GETUSER -- Get the user details.", -"DELUSER -- Delete a user.", +"DELUSER [...] -- Delete a list of users.", "CAT -- List available categories.", "CAT -- List commands inside category.", "WHOAMI -- Return the current connection username.",