]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl fix file estimation
authorEric Bollengier <eric@eb.homelinux.org>
Sat, 2 Sep 2006 07:15:49 +0000 (07:15 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sat, 2 Sep 2006 07:15:49 +0000 (07:15 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3397 91ce42f0-d328-0410-95d8-f526ca767f89

gui/brestore/brestore.pl

index 55e8f0434db0a05c53bc1b16ceda69e22e2eaf67..81c04ee7e761b8529afbe6640d506f574601bd2d 100755 (executable)
@@ -2712,11 +2712,12 @@ sub estimate_restore_size
        my $inclause = $entry->[3]; # curjobids
        $query = 
 "SELECT Path.Path, File.FilenameId, File.Lstat
-  FROM File, Path
+  FROM File, Path, Filename
   WHERE Path.PathId = File.PathId
   AND Path.Path = '$dir/'
   AND Filename.Name = '$file'
-  AND File.JobId = $jobid";
+  AND File.JobId = $jobid
+  AND Filename.FilenameId = File.FilenameId";
     }
 
     print $query,"\n" if $debug;