Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Commit

Permalink
Bugfix list files from Windows Backups
Browse files Browse the repository at this point in the history
Using .bvfs_lsdirs or .bvfslsfiles with empty path parameter like
path="" will list "/" on Unix and all drives on Windows.

Fixes #516: Restore dont list Files from Windows Backups

Signed-off-by: Frank Bergkemper <frank.bergkemper@dass-it.de>
  • Loading branch information
fbergkemper committed Sep 14, 2015
1 parent 9068d88 commit 96fa046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Restore/src/Restore/Controller/RestoreController.php
Expand Up @@ -413,7 +413,7 @@ private function getDirectories($jobid=null, $pathid=null)
{
$director = $this->getServiceLocator()->get('director');
if($pathid == null || $pathid == "#") {
$result = $director->send_command(".bvfs_lsdirs jobid=$jobid path=/", 2, $jobid);
$result = $director->send_command(".bvfs_lsdirs jobid=$jobid path=", 2, $jobid);
}
else {
$result = $director->send_command(".bvfs_lsdirs jobid=$jobid pathid=" . abs($pathid), 2, $jobid);
Expand All @@ -432,7 +432,7 @@ private function getFiles($jobid=null, $pathid=null)
{
$director = $this->getServiceLocator()->get('director');
if($pathid == null || $pathid == "#") {
$result = $director->send_command(".bvfs_lsfiles jobid=$jobid path=/", 2);
$result = $director->send_command(".bvfs_lsfiles jobid=$jobid path=", 2);
}
else {
$result = $director->send_command(".bvfs_lsfiles jobid=$jobid pathid=" . abs($pathid), 2);
Expand Down

0 comments on commit 96fa046

Please sign in to comment.