From cf44c5efc56832fc7e268d0ce90cc8aa61b67a8e Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 26 Jan 2010 06:48:36 +0000 Subject: [PATCH] relative path support for rflash git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5042 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCrflash.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/perl-xCAT/xCAT/PPCrflash.pm b/perl-xCAT/xCAT/PPCrflash.pm index 57dede651..25e868f82 100644 --- a/perl-xCAT/xCAT/PPCrflash.pm +++ b/perl-xCAT/xCAT/PPCrflash.pm @@ -112,6 +112,9 @@ sub parse_args { return( usage("Option -p must be used with --activate ") ); } + if ( exists( $opt{p} ) && ($opt{p} !~ /^\//) ) {#relative path + $opt{p} = xCAT::Utils->full_path($opt{p}, $request->{cwd}->[0]); + } ############################### #--activate's value only can be concurrent and disruptive ################################