Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
510327df
Commit
510327df
authored
Jan 25, 2019
by
antirez
Browse files
Merge branch 'unstable' of github.com:/antirez/redis into unstable
parents
7b4f3cc3
e545b30f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
510327df
...
@@ -645,6 +645,11 @@ void aclCommand(client *c) {
...
@@ -645,6 +645,11 @@ void aclCommand(client *c) {
}
}
}
else
if
(
!
strcasecmp
(
sub
,
"getuser"
)
&&
c
->
argc
==
3
)
{
}
else
if
(
!
strcasecmp
(
sub
,
"getuser"
)
&&
c
->
argc
==
3
)
{
user
*
u
=
ACLGetUserByName
(
c
->
argv
[
2
]
->
ptr
,
sdslen
(
c
->
argv
[
2
]
->
ptr
));
user
*
u
=
ACLGetUserByName
(
c
->
argv
[
2
]
->
ptr
,
sdslen
(
c
->
argv
[
2
]
->
ptr
));
if
(
u
==
NULL
)
{
addReplyNull
(
c
);
return
;
}
addReplyMapLen
(
c
,
2
);
addReplyMapLen
(
c
,
2
);
/* Flags */
/* Flags */
...
...
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