From cb0af287a566e19192832d70dd473c10f5962472 Mon Sep 17 00:00:00 2001 From: hu-weihua Date: Thu, 28 Jan 2016 03:08:24 -0500 Subject: [PATCH] change mkdir to mkpath --- xCAT-server/sbin/xcatd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/sbin/xcatd b/xCAT-server/sbin/xcatd index 4a878bb4e..a640a4390 100644 --- a/xCAT-server/sbin/xcatd +++ b/xCAT-server/sbin/xcatd @@ -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.");