]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix purged restore prompting
authorKern Sibbald <kern@sibbald.com>
Thu, 30 Apr 2009 07:08:06 +0000 (07:08 +0000)
committerKern Sibbald <kern@sibbald.com>
Thu, 30 Apr 2009 07:08:06 +0000 (07:08 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8770 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/dird/ua_restore.c

index b23b020170de0dd94f058f646b9aede75898764c..36857ed38793e802097e481cf6b9808e2fc7142e 100644 (file)
@@ -990,8 +990,8 @@ static void split_path_and_filename(UAContext *ua, RESTORE_CTX *rx, char *name)
 
 static bool ask_for_fileregex(UAContext *ua, RESTORE_CTX *rx)
 {
-   if (find_arg(ua, NT_("all"))) {       /* if user enters all on command line */
-       return true;                      /* select everything */
+   if (find_arg(ua, NT_("all")) >= 0) {  /* if user enters all on command line */
+      return true;                       /* select everything */
    }
    ua->send_msg(_("\nThere were no files inserted into the tree, so file selection\n"
                   "is not possible.Most likely your retention policy pruned the files\n"));