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
This commit is contained in:
sjing 2012-04-11 05:54:14 +00:00
parent 9c6cc52d49
commit 48dc9306ec

View File

@ -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