]> git.sur5r.net Git - bacula/bacula/commitdiff
Extraction must be disabled here, as it can not be done without access to the keys.
authorLandon Fuller <landonf@opendarwin.org>
Sat, 25 Nov 2006 18:57:54 +0000 (18:57 +0000)
committerLandon Fuller <landonf@opendarwin.org>
Sat, 25 Nov 2006 18:57:54 +0000 (18:57 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3701 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/filed/restore.c

index bd24f234ea34d7b537d4233e8e0bd2ca183c359c..9ccf22e905e988d1516909f9d648558087c6768e 100644 (file)
@@ -365,6 +365,8 @@ void do_restore(JCR *jcr)
          /* Do we have any keys at all? */
          if (!jcr->pki_recipients) {
             Jmsg(jcr, M_ERROR, 0, _("No private decryption keys have been defined to decrypt encrypted backup data.\n"));
+            extract = false;
+            bclose(&bfd);
             break;
          }