Check if password is used on command line interface.

This commit is contained in:
dejun.xdj 2018-06-28 19:09:22 +08:00
parent 1139070a0f
commit 9f1856268c

View File

@ -1390,7 +1390,7 @@ static int parseOptions(int argc, char **argv) {
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"
" line interface may not be safe.\n", stderr);
}