summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-02-12 09:44:25 +0100
committerantirez <antirez@gmail.com>2019-02-12 09:44:30 +0100
commitd5e4a7f43976d14241c56dd65754189fd8569087 (patch)
tree52bb3191cb0de8c082cf708d433a5cbeac3f27a1
parentcc6d05a1f7d928216b2dd712f2d4e4d5f9f37674 (diff)
downloadredis-d5e4a7f43976d14241c56dd65754189fd8569087.tar.gz
ACL: when client->user is NULL the client is a superuser.
Related to #5832.
-rw-r--r--src/networking.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/networking.c b/src/networking.c
index 621570d5f..23bc97eec 100644
--- a/src/networking.c
+++ b/src/networking.c
@@ -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) {