From c24cb4f270febdcf70e4f03776063613465ef37a Mon Sep 17 00:00:00 2001 From: David Weber Date: Wed, 16 Nov 2011 14:36:58 +0100 Subject: [PATCH] bweb: Fix bresto full directory restore We need the jobid if we want to restore a full directory --- gui/bweb/cgi/bresto.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/bweb/cgi/bresto.pl b/gui/bweb/cgi/bresto.pl index 81d5b8d2d7..f982692c80 100755 --- a/gui/bweb/cgi/bresto.pl +++ b/gui/bweb/cgi/bresto.pl @@ -613,11 +613,13 @@ sub fill_table_for_restore map { split(/,/) } CGI::param('dirid')) ; my $findex = join(',', grep { /^\d+$/ } map { split(/,|\//) } CGI::param('findex')) ; + my $jobid = join(',', grep { /^\d+$/ } + map { split(/,/) } CGI::param('jobid')) ; my $inclause = join(',', @jobid); my $b = $bvfs->get_bconsole(); my $ret = $b->send_one_cmd(".bvfs_restore path=b2$$ fileid=$fileid " . - "dirid=$dirid hardlink=$findex jobid=1" + "dirid=$dirid hardlink=$findex jobid=$jobid" . $bvfs->{bvfs_user}); if (grep (/OK/, @$ret)) { return "b2$$"; -- 2.39.5