2 This patch resolves bug #955 where the director segfault when
3 where= option isn't specified anywhere.
5 Apply to version 2.2.4 (and perhaps older 2.2.x versions) with
8 patch -p0 <2.2.4-restore.patch
9 ./configure (your options)
15 Index: src/dird/restore.c
16 ===================================================================
17 --- src/dird/restore.c (revision 5601)
18 +++ src/dird/restore.c (working copy)
22 /* Send restore command */
23 - char replace, *where, *cmd=NULL;
24 + char replace, *where, *cmd;
27 if (jcr->replace != 0) {
30 replace = REPLACE_ALWAYS; /* always replace */
33 - where = ∅ /* default */
35 if (jcr->RegexWhere) {
36 where = jcr->RegexWhere; /* override */
38 } else if (jcr->job->RestoreWhere) {
39 where = jcr->job->RestoreWhere; /* no override take from job */
43 + } else { /* nothing was specified */
44 + where = ∅ /* use default */
48 jcr->prefix_links = jcr->job->PrefixLinks;