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
9f185626
Commit
9f185626
authored
Jun 28, 2018
by
dejun.xdj
Browse files
Check if password is used on command line interface.
parent
1139070a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
9f185626
...
@@ -1390,7 +1390,7 @@ static int parseOptions(int argc, char **argv) {
...
@@ -1390,7 +1390,7 @@ static int parseOptions(int argc, char **argv) {
exit
(
1
);
exit
(
1
);
}
}
if
(
!
config
.
no_auth_warning
)
{
if
(
!
config
.
no_auth_warning
&&
config
.
auth
!=
NULL
)
{
fputs
(
"Warning: Using a password with '-a' or '-u' option on the command"
fputs
(
"Warning: Using a password with '-a' or '-u' option on the command"
" line interface may not be safe.
\n
"
,
stderr
);
" line interface may not be safe.
\n
"
,
stderr
);
}
}
...
...
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