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
d71c4961
Commit
d71c4961
authored
May 16, 2018
by
dejun.xdj
Committed by
antirez
May 29, 2018
Browse files
Stop saving auth command in redis-cli history.
parent
fca99e41
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
d71c4961
...
...
@@ -1399,8 +1399,10 @@ static void repl(void) {
while
((
line
=
linenoise
(
context
?
config
.
prompt
:
"not connected> "
))
!=
NULL
)
{
if
(
line
[
0
]
!=
'\0'
)
{
argv
=
cliSplitArgs
(
line
,
&
argc
);
if
(
strcasecmp
(
argv
[
0
],
"auth"
))
{
if
(
history
)
linenoiseHistoryAdd
(
line
);
if
(
historyfile
)
linenoiseHistorySave
(
historyfile
);
}
if
(
argv
==
NULL
)
{
printf
(
"Invalid argument(s)
\n
"
);
...
...
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