2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 02:00:24 +00:00

change mkdir to mkpath

This commit is contained in:
hu-weihua
2016-01-28 03:08:24 -05:00
parent c4e0b0c199
commit cb0af287a5

View File

@@ -1131,7 +1131,7 @@ unless ($cmdlog_svrpid){
my @tmp = split "/",$cmdlog_logfile;
splice (@tmp, -1);
my $cmdlog_logfile_path=join("/", @tmp);
mkdir("$cmdlog_logfile_path") unless(-d "$cmdlog_logfile_path");
mkpath("$cmdlog_logfile_path") unless(-d "$cmdlog_logfile_path");
unless (open ($cmdlogfile, ">>$cmdlog_logfile")) {
xCAT::MsgUtils->trace(0,"E","xcatd: Can't open xcat command log file $cmdlog_logfile,command log process $$ stop.");