From: Kern Sibbald Date: Wed, 29 Apr 2009 11:53:59 +0000 (+0000) Subject: Fix bug #1281 allow all on restore command line to restore X-Git-Tag: Release-3.0.1~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e8eba14f3f84b4467ddb85c39f760c006d2e2f48;p=bacula%2Fbacula Fix bug #1281 allow all on restore command line to restore pruned JobIds without prompting. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8761 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_restore.c b/bacula/src/dird/ua_restore.c index 2e55a40405..b23b020170 100644 --- a/bacula/src/dird/ua_restore.c +++ b/bacula/src/dird/ua_restore.c @@ -990,6 +990,9 @@ 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 */ + } 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")); if (get_yesno(ua, _("\nDo you want to restore all the files? (yes|no): "))) {