summaryrefslogtreecommitdiff
path: root/src/acl.c
diff options
context:
space:
mode:
authorHarkrishn Patro <harkrisp@amazon.com>2022-03-01 05:26:58 +0100
committerGitHub <noreply@github.com>2022-02-28 20:26:58 -0800
commit21aabab4013a651420e954fe1ae6ad06cc6e5a15 (patch)
tree1d3290fc07991eae7c1e710c7a5c9730ab0838ca /src/acl.c
parentdff153ff247478015d0cf93f0f46a222169ac09c (diff)
downloadredis-21aabab4013a651420e954fe1ae6ad06cc6e5a15.tar.gz
Fix acl dryrun to return the tested common permission error. (#10359)
Diffstat (limited to 'src/acl.c')
-rw-r--r--src/acl.c2
1 files changed, 1 insertions, 1 deletions
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);