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
e4846b02
Commit
e4846b02
authored
Jan 10, 2019
by
antirez
Browse files
ACL: implement ACLGetUserByName().
parent
29c88a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/acl.c
View file @
e4846b02
...
...
@@ -132,7 +132,9 @@ unsigned long ACLGetCommandID(const char *cmdname) {
/* Return an username by its name, or NULL if the user does not exist. */
user
*
ACLGetUserByName
(
const
char
*
name
,
size_t
namelen
)
{
return
NULL
;
void
*
myuser
=
raxFind
(
Users
,(
unsigned
char
*
)
name
,
namelen
);
if
(
myuser
==
raxNotFound
)
return
NULL
;
return
myuser
;
}
/* =============================================================================
...
...
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