-Fix problem where XCATROOT ending in non-slash resulted in problems with recent checkins

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-08-24 20:41:24 +00:00
parent a0df2c7f75
commit f023330458

View File

@ -404,11 +404,11 @@ sub process_request {
#back to normal business
if (! -r "$tftpdir/xcat/pxelinux.0") {
unless (-r $::XCATROOT."share/xcat/netboot/syslinux/pxelinux.0") {
$callback->({error=>["Unable to find pxelinux.0 at ".$::XCATROOT."share/xcat/netboot/syslinux/pxelinux.0"],errorcode=>[1]});
unless (-r $::XCATROOT."/share/xcat/netboot/syslinux/pxelinux.0") {
$callback->({error=>["Unable to find pxelinux.0 at ".$::XCATROOT."/share/xcat/netboot/syslinux/pxelinux.0"],errorcode=>[1]});
return;
}
copy($::XCATROOT."share/xcat/netboot/syslinux/pxelinux.0","$tftpdir/xcat/pxelinux.0");
copy($::XCATROOT."/share/xcat/netboot/syslinux/pxelinux.0","$tftpdir/xcat/pxelinux.0");
chmod(0644,"$tftpdir/pxelinux.0");
}
unless ( -r "$tftpdir/xcat/pxelinux.0" ) {