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
9f32d0ee
Commit
9f32d0ee
authored
Oct 31, 2019
by
Itamar Haber
Browse files
Ommits from redis-cli's history
parent
764b420f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
9f32d0ee
...
@@ -1945,8 +1945,12 @@ static void repl(void) {
...
@@ -1945,8 +1945,12 @@ static void repl(void) {
}
}
}
}
/* Won't save auth command in history file */
/* Won't save auth or acl setuser commands in history file */
if (!(argv && argc > 0 && !strcasecmp(argv[0+skipargs], "auth"))) {
if (!(argv && argc > 0 &&
(!strcasecmp(argv[0+skipargs], "auth") ||
(skipargs + 1 < argc &&
!strcasecmp(argv[0+skipargs], "acl") &&
!strcasecmp(argv[0+skipargs+1], "setuser"))))) {
if (history) linenoiseHistoryAdd(line);
if (history) linenoiseHistoryAdd(line);
if (historyfile) linenoiseHistorySave(historyfile);
if (historyfile) linenoiseHistorySave(historyfile);
}
}
...
...
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