From a7e278036e0d5ab1a729e6ee376e573c2c1654ef Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 20 Sep 2007 11:51:09 +0000 Subject: [PATCH] ebl Add a patch to fix #955 git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5606 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/patches/2.2.4-restore.patch | 49 ++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 bacula/patches/2.2.4-restore.patch diff --git a/bacula/patches/2.2.4-restore.patch b/bacula/patches/2.2.4-restore.patch new file mode 100644 index 0000000000..3ef991e3b7 --- /dev/null +++ b/bacula/patches/2.2.4-restore.patch @@ -0,0 +1,49 @@ + + This patch resolves bug #955 where the director segfault when + where= option isn't specified anywhere. + + Apply to version 2.2.4 (and perhaps older 2.2.x versions) with + + cd + patch -p0 <2.2.4-restore.patch + ./configure (your options) + make + ... + make install + + +Index: src/dird/restore.c +=================================================================== +--- src/dird/restore.c (revision 5601) ++++ src/dird/restore.c (working copy) +@@ -173,7 +173,7 @@ + } + + /* Send restore command */ +- char replace, *where, *cmd=NULL; ++ char replace, *where, *cmd; + char empty = '\0'; + + if (jcr->replace != 0) { +@@ -183,8 +183,6 @@ + } else { + replace = REPLACE_ALWAYS; /* always replace */ + } +- +- where = ∅ /* default */ + + if (jcr->RegexWhere) { + where = jcr->RegexWhere; /* override */ +@@ -199,7 +197,11 @@ + } else if (jcr->job->RestoreWhere) { + where = jcr->job->RestoreWhere; /* no override take from job */ + cmd = restorecmd; +- } ++ ++ } else { /* nothing was specified */ ++ where = ∅ /* use default */ ++ cmd = restorecmd; ++ } + + jcr->prefix_links = jcr->job->PrefixLinks; + -- 2.39.5