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
b263c7c4
Commit
b263c7c4
authored
May 16, 2018
by
dejun.xdj
Browse files
Stop saving auth command in redis-cli history.
parent
c082221a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
b263c7c4
...
...
@@ -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
(
history
)
linenoiseHistoryAdd
(
line
);
if
(
historyfile
)
linenoiseHistorySave
(
historyfile
);
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