[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bacula-devel] tray-monitor in trunk and fd access


Hi,

since March 10th, the trunk file daemon sends a "2000 OK Hello 1" to its 
clients instead of the old "2000 OK Hello" without the trailing 1; the 1 was 
added as a FD version.

Unfortunately, the tray monitor expects the old string, without any additional 
characters. Due to this, tray monitor access to the FD has been failing since 
March.

It is obviously extremely simple to fix the tray-monitor code to include the 
static "1" as well (see attachment). This, nonetheless, only partially fixes 
the problem, as it creates incompatibilities between existing 2.4.x monitors 
and upcoming 3.x FDs, as well as the other way around. Better than nothing, 
though.

Maybe someone could come up with a better idea?

Thx
   Bastian

-- 
Collax GmbH . Burkheimer Straße 3 . 79111 Freiburg . Germany
p: +49 (0) 761-45684-24
f: +49 (0) 761-45684-10        www.collax.com

Geschäftsführer: William K. Hite / Boris Nalbach
AG München HRB 158898 . Ust.-IdNr: DE 814464942
\ Q:      How many surrealists does it take to change a light bulb?
\ A:      Two, one to hold the giraffe, and the other to fill the
\         bathtub with brightly colored machine tools.
--- bacula-2.5-20081006svn/src/tray-monitor/authenticate.c.ori	2008-10-14 15:20:53.000000000 +0200
+++ bacula-2.5-20081006svn/src/tray-monitor/authenticate.c	2008-10-14 15:20:58.000000000 +0200
@@ -58,7 +58,7 @@
 /* Response from SD */
 static char SDOKhello[]   = "3000 OK Hello\n";
 /* Response from FD */
-static char FDOKhello[] = "2000 OK Hello\n";
+static char FDOKhello[] = "2000 OK Hello 1\n";
 
 /* Forward referenced functions */
 
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/bacula-devel


This mailing list archive is a service of Copilotco.