ACL LOG: actually emit entries.

This commit is contained in:
antirez
2020-01-28 18:04:20 +01:00
parent d9b153c9f6
commit f1974d5d67
3 changed files with 34 additions and 5 deletions

View File

@ -3377,8 +3377,10 @@ int processCommand(client *c) {
/* Check if the user can run this command according to the current
* ACLs. */
int acl_retval = ACLCheckCommandPerm(c,NULL);
int acl_keypos;
int acl_retval = ACLCheckCommandPerm(c,&acl_keypos);
if (acl_retval != ACL_OK) {
addACLLogEntry(c,acl_retval,acl_keypos);
flagTransaction(c);
if (acl_retval == ACL_DENIED_CMD)
addReplyErrorFormat(c,