提交 9f185626 编写于 作者: D dejun.xdj

Check if password is used on command line interface.

上级 1139070a
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册