!5997 增加gs_ctl init工具--pwfile参数校验
Merge pull request !5997 from zzh/master
This commit is contained in:
@ -1956,6 +1956,9 @@ static void get_set_pwd(void)
|
||||
pwdbuf[--i] = '\0';
|
||||
|
||||
pwd1 = xstrdup(pwdbuf);
|
||||
if (!CheckInitialPasswd(username, pwd1)) {
|
||||
exit_nicely();
|
||||
}
|
||||
|
||||
} else if (pwprompt) {
|
||||
/* else get password from readline */
|
||||
|
||||
Reference in New Issue
Block a user