add prefix path for genpassword

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-08-20 04:35:15 +00:00
parent 67a96aa58d
commit 940b7aef40

View File

@ -306,7 +306,7 @@ sub process_request {
close($shadow);
open($shadow,">","$rootimg_dir/etc/shadow");
unless ($pass =~ /^\$1\$/) {
$pass = crypt($pass,'$1$'.genpassword(8));
$pass = crypt($pass,'$1$'.xCAT::Utils::genpassword(8));
}
print $shadow "root:$pass:13880:0:99999:7:::\n";
foreach (@shadents) {