kes Fix a crash in bat when it cannot connect to the Director for example
if the Director is not running.
kes Remove redundant INDEX (JobId) from File table in the trunk.
This fixes bug #992.
kes Make explicit exception to GPL in LICENSE to permit linking
the Win32 FD with Microsoft VSS code.
kes Apply the Solaris package patch from
Masopust, Christian <christian.masopust@siemens.com>
kes Apply the patch to optionally add a timestamp in the debug output
submitted by Mariusz Czulada <manieq@wp.eu>.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5772
91ce42f0-d328-0410-95d8-
f526ca767f89
For the most part, Bacula is licensed under the GPL version 2 this
code is listed under Copyright Free Software Foundation Europe e.V.
What follows is the addition(s) to the GPL version 2 license, that
-applys to code that is copyrighted by the Free Software Foundation
+applies to code that is copyrighted by the Free Software Foundation
Europe e.V.
Linking:
Public License in all respects for all of the code used other than for
the Microsoft VSS code, where you must obey their license terms.
+The Bacula Project gives permission for plugins with GPLv2 compatible
+licenses to be loaded and distributed with the Bacula executables as
+long as the combined work is distributed under the terms listed in the
+Bacula LICENSE file. A full list of GPLv2 compatible licenses can be
+found at: http://www.fsf.org/licensing/licenses/. If you wish to load
+or distribute plugins with different licensing terms please contact
+the Bacula Project at: license@bacula.org
===================================
--- /dev/null
+
+ This patch fixes the default behavior of a non-DEVELOPER version of Bacula
+ to close STDIN, STDOUT, and STDERR so that an ssh that starts bacula
+ will not hang. It also fixes a crash in bat when bat is executed and
+ cannot connect to the Director (e.g. it is not running).
+ This patch fixes bugs #991 and #993.
+
+ Apply this fix to Bacula version 2.2.5 with:
+
+ cd <bacula-source>
+ patch -p0 <2.2.5-daemon.patch
+ ./configure (your options)
+ make
+ ...
+ make install
+
+
+Index: src/lib/message.c
+===================================================================
+--- src/lib/message.c (revision 5744)
++++ src/lib/message.c (working copy)
+@@ -52,7 +52,8 @@
+ */
+ const char *working_directory = NULL; /* working directory path stored here */
+ int verbose = 0; /* increase User messages */
+-int debug_level = 1; /* debug level */
++/* Keep debug level set to zero by default */
++int debug_level = 0; /* debug level */
+ time_t daemon_start_time = 0; /* Daemon start time */
+ const char *version = VERSION " (" BDATE ")";
+ char my_name[30]; /* daemon name is stored here */
+@@ -1338,7 +1339,7 @@
+ jcr = get_jcr_from_tsd();
+ }
+ /* If no jcr or dequeuing send to daemon to avoid recursion */
+- if (!jcr || jcr->dequeuing) {
++ if ((jcr && !jcr->msg_queue) || !jcr || jcr->dequeuing) {
+ /* jcr==NULL => daemon message, safe to send now */
+ Jmsg(jcr, item->type, item->mtime, "%s", item->msg);
+ free(item);
*/
const char *working_directory = NULL; /* working directory path stored here */
int verbose = 0; /* increase User messages */
-int debug_level = 1; /* debug level */
+int debug_level = 0; /* debug level */
bool dbg_timestamp = false; /* print timestamp in debug output */
time_t daemon_start_time = 0; /* Daemon start time */
const char *version = VERSION " (" BDATE ")";
General:
19Oct07
+kes Set default debug_level to zero. This corrects bugs #991 and #993.
+kes Fix a crash in bat when it cannot connect to the Director for example
+ if the Director is not running.
+kes Remove redundant INDEX (JobId) from File table in the trunk.
+ This fixes bug #992.
kes Make explicit exception to GPL in LICENSE to permit linking
the Win32 FD with Microsoft VSS code.
kes Apply the Solaris package patch from