From: Kern Sibbald Date: Thu, 30 Apr 2009 07:08:06 +0000 (+0000) Subject: Fix purged restore prompting X-Git-Tag: Release-3.0.1~1^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cfd9edef5a9c3f69da5f473ee700011c78934512;p=bacula%2Fbacula Fix purged restore prompting git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8770 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index b23b020170..36857ed387 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -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"));