diff options
author | antirez <antirez@gmail.com> | 2019-09-23 17:47:36 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2019-09-23 17:47:36 +0200 |
commit | 8ea185ea30853cd067a44d18895029be76591edb (patch) | |
tree | c2f4aa2749e84865808b7bf7ee9bff628c249b46 | |
parent | bb7546c9134b21b32e2fc9a6850407179bad8a64 (diff) | |
download | redis-8ea185ea30853cd067a44d18895029be76591edb.tar.gz |
redis-cli: AUTH can now have 3 arguments as well.
-rw-r--r-- | src/redis-cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c index 9a5f81723..38a0b0b7f 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1222,7 +1222,8 @@ static int cliSendCommand(int argc, char **argv, long repeat) { if (!strcasecmp(command,"select") && argc == 2 && config.last_cmd_type != REDIS_REPLY_ERROR) { config.dbnum = atoi(argv[1]); cliRefreshPrompt(); - } else if (!strcasecmp(command,"auth") && argc == 2) { + } else if (!strcasecmp(command,"auth") && (argc == 2 || argc == 3)) + { cliSelect(); } } |