!5997 增加gs_ctl init工具--pwfile参数校验

Merge pull request !5997 from zzh/master
This commit is contained in:
opengauss_bot
2024-08-14 12:09:07 +00:00
committed by Gitee

View File

@ -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 */