From: Kern Sibbald Date: Sun, 31 Oct 2010 13:46:26 +0000 (+0100) Subject: Ignore unknown dot commands in restore tree code X-Git-Tag: Release-5.2.1~1015 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d14332e6d70501f99a2cf9a67b3a57f352d05084;p=bacula%2Fbacula Ignore unknown dot commands in restore tree code --- diff --git a/bacula/src/dird/ua_tree.c b/bacula/src/dird/ua_tree.c index 7d08b56410..389d86861d 100644 --- a/bacula/src/dird/ua_tree.c +++ b/bacula/src/dird/ua_tree.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2002-2009 Free Software Foundation Europe e.V. + Copyright (C) 2002-2010 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -33,7 +33,6 @@ * * Kern Sibbald, July MMII * - * Version $Id$ */ #include "bacula.h" @@ -151,6 +150,10 @@ bool user_select_files_from_tree(TREE_CTX *tree) break; } if (!found) { + if (*ua->argk[0] == '.') { + /* Some unknow dot command -- probably .messages, ignore it */ + continue; + } ua->warning_msg(_("Invalid command \"%s\". Enter \"done\" to exit.\n"), ua->cmd); if (ua->api) user->signal(BNET_CMD_FAILED); continue;