From 824705d8e5c8580aeba239213790b44ce0b8ec7d Mon Sep 17 00:00:00 2001 From: linggao Date: Mon, 16 May 2011 19:01:03 +0000 Subject: [PATCH] fixed defect 3302671 and 3299348 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9603 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/imgutils/imgutils.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm index 094d296a9..c48b230da 100644 --- a/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm +++ b/xCAT-server/share/xcat/netboot/imgutils/imgutils.pm @@ -14,9 +14,11 @@ sub get_profile_def_filename { my $osver = shift; my $profile = shift; my $arch = shift; + + my $tmp_base=shift; + my $base=realpath($tmp_base); #get the full path + if (!$base) { $base=$tmp_base;} - my $base=shift; - $base=realpath($base); #get the full path my $ext=shift; my $dotpos;