ACL: when client->user is NULL the client is a superuser.

Related to #5832.
This commit is contained in:
antirez 2019-02-12 09:44:25 +01:00
parent bece806662
commit 34f11c811d

View File

@ -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) {