From 940b7aef4096e3577070ff8562a1eb0a86f0dfd5 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Mon, 20 Aug 2012 04:35:15 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/packimage.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/packimage.pm b/xCAT-server/lib/xcat/plugins/packimage.pm index 77363dfc6..7dbfb813a 100644 --- a/xCAT-server/lib/xcat/plugins/packimage.pm +++ b/xCAT-server/lib/xcat/plugins/packimage.pm @@ -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) {