From 805fb1510df2713a376a32ff1ebaa117c5da17bc Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Thu, 7 Jun 2012 18:16:29 +0000 Subject: [PATCH] Fix problem where tabdump -f would fail to correct for relative paths. It really shouldn't be doing this server side at all.... git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 3d687cc61..bcd707bfa 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -126,7 +126,7 @@ sub process_request } elsif ($command eq "tabdump") { - return tabdump($args, $callback); + return tabdump($args, $callback,$request); } elsif ($command eq "lsxcatd") { @@ -531,6 +531,7 @@ sub tabdump { my $args = shift; my $cb = shift; + my $request = shift; my $table = ""; my $HELP; my $DESC; @@ -576,6 +577,7 @@ sub tabdump $cb->(\%rsp); return; } + if ($FILENAME and $FILENAME !~ /^\//) { $FILENAME =~ s/^/$request->{cwd}->[0]\//; } if ($HELP) { $tabdump_usage->(0); return; }