From 21aabab4013a651420e954fe1ae6ad06cc6e5a15 Mon Sep 17 00:00:00 2001 From: Harkrishn Patro Date: Tue, 1 Mar 2022 05:26:58 +0100 Subject: Fix acl dryrun to return the tested common permission error. (#10359) --- src/acl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/acl.c') diff --git a/src/acl.c b/src/acl.c index 7399ded74..3e2ecb9bf 100644 --- a/src/acl.c +++ b/src/acl.c @@ -2799,7 +2799,7 @@ setuser_cleanup: sds err = sdsempty(); if (result == ACL_DENIED_CMD) { err = sdscatfmt(err, "This user has no permissions to run " - "the '%s' command", c->cmd->fullname); + "the '%s' command", cmd->fullname); } else if (result == ACL_DENIED_KEY) { err = sdscatfmt(err, "This user has no permissions to access " "the '%s' key", c->argv[idx + 3]->ptr); -- cgit v1.2.1