]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Add a patch for a command parser issue causing a director segfault.
authorEric Bollengier <eric@eb.homelinux.org>
Thu, 20 Sep 2007 17:03:10 +0000 (17:03 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Thu, 20 Sep 2007 17:03:10 +0000 (17:03 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.2@5617 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/2.2.4-parse-command.patch [new file with mode: 0644]

diff --git a/bacula/patches/2.2.4-parse-command.patch b/bacula/patches/2.2.4-parse-command.patch
new file mode 100644 (file)
index 0000000..312dd29
--- /dev/null
@@ -0,0 +1,28 @@
+
+ This patch resolves a command parser issue 
+ causing a director segfault when using something
+ like "run job 1 2"
+
+ Apply to version 2.2.4 (and perhaps older 2.2.x versions) with
+
+ cd <bacula-source>
+ patch -p0 <2.2.4-parse-command.patch
+ ./configure (your options)
+ make
+ ...
+ make install
+
+
+Index: src/dird/ua_run.c
+===================================================================
+--- src/dird/ua_run.c  (rĂ©vision 5616)
++++ src/dird/ua_run.c  (copie de travail)
+@@ -933,7 +933,7 @@
+             /* Note, yes and run have no value, so do not fail */
+             if (!ua->argv[i] && j != YES_POS /*yes*/) {
+                ua->send_msg(_("Value missing for keyword %s\n"), ua->argk[i]);
+-               return true;
++               return false;
+             }
+             Dmsg1(800, "Got keyword=%s\n", NPRT(kw[j]));
+             switch (j) {