Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
8fc00793
Commit
8fc00793
authored
Jan 25, 2019
by
zhaozhao.zz
Browse files
ACL: check patterns instead of passwords in ACLCheckCommandPerm
parent
e545b30f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
8fc00793
...
...
@@ -555,7 +555,7 @@ int ACLCheckCommandPerm(client *c) {
for
(
int
j
=
0
;
j
<
numkeys
;
j
++
)
{
listIter
li
;
listNode
*
ln
;
listRewind
(
u
->
pa
ssword
s
,
&
li
);
listRewind
(
u
->
pa
ttern
s
,
&
li
);
/* Test this key against every pattern. */
int
match
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment