From 9c2aad4710eada37a14e7177bfb8eed5d3a8d903 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 30 Apr 2009 07:08:06 +0000 Subject: [PATCH] Fix purged restore prompting git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8770 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/dird/ua_restore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")); -- 2.39.5