From 48dc9306ec9425d539109d0f2a91e04f4177aae2 Mon Sep 17 00:00:00 2001 From: sjing Date: Wed, 11 Apr 2012 05:54:14 +0000 Subject: [PATCH] fixed the issue when -l is specified as '/' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index bef9b5794..ca530c28e 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -4900,6 +4900,10 @@ sub chk_resolv_conf my $install_dir = xCAT::Utils->getInstallDir(); if ($::opt_l) { + if ($::opt_l =~ /\/$/) + { + $::opt_l =~ s/\/$//; #remove tailing slash if needed + } $loc = "$::opt_l/resolv_conf/$resolv_conf_name"; } else