From 55a17532428675915fff34a6f1979060dadd2afd Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 20 Sep 2007 17:03:10 +0000 Subject: [PATCH] ebl Add a patch for a command parser issue causing a director segfault. 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 | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bacula/patches/2.2.4-parse-command.patch diff --git a/bacula/patches/2.2.4-parse-command.patch b/bacula/patches/2.2.4-parse-command.patch new file mode 100644 index 0000000000..312dd29efe --- /dev/null +++ b/bacula/patches/2.2.4-parse-command.patch @@ -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 + 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) { -- 2.39.5