mirror of
http://github.com/valkey-io/valkey
synced 2024-11-22 00:52:38 +00:00
Stop saving auth command in redis-cli history.
This commit is contained in:
parent
fca99e413a
commit
d71c49610b
@ -1399,8 +1399,10 @@ static void repl(void) {
|
|||||||
while((line = linenoise(context ? config.prompt : "not connected> ")) != NULL) {
|
while((line = linenoise(context ? config.prompt : "not connected> ")) != NULL) {
|
||||||
if (line[0] != '\0') {
|
if (line[0] != '\0') {
|
||||||
argv = cliSplitArgs(line,&argc);
|
argv = cliSplitArgs(line,&argc);
|
||||||
if (history) linenoiseHistoryAdd(line);
|
if (strcasecmp(argv[0], "auth")) {
|
||||||
if (historyfile) linenoiseHistorySave(historyfile);
|
if (history) linenoiseHistoryAdd(line);
|
||||||
|
if (historyfile) linenoiseHistorySave(historyfile);
|
||||||
|
}
|
||||||
|
|
||||||
if (argv == NULL) {
|
if (argv == NULL) {
|
||||||
printf("Invalid argument(s)\n");
|
printf("Invalid argument(s)\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user