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
d5e4a7f4
Commit
d5e4a7f4
authored
Feb 12, 2019
by
antirez
Browse files
ACL: when client->user is NULL the client is a superuser.
Related to #5832.
parent
cc6d05a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/networking.c
View file @
d5e4a7f4
...
...
@@ -1800,7 +1800,7 @@ sds catClientInfoString(sds s, client *client) {
(unsigned long long) getClientOutputBufferMemoryUsage(client),
events,
client->lastcmd ? client->lastcmd->name : "NULL",
client
->
user
?
client
->
user
->
name
:
""
);
client->user ? client->user->name : "
(superuser)
");
}
sds getAllClientsInfoString(int type) {
...
...
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