From: Kern Sibbald Date: Fri, 14 Sep 2007 16:56:40 +0000 (+0000) Subject: kes Fix bacula_cats.def for new db_escape_string(). X-Git-Tag: Release-7.0.0~5673 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3a1a1c2175ecbfb25d26003cabd39c5c39c548ed;p=bacula%2Fbacula kes Fix bacula_cats.def for new db_escape_string(). kes Increase size of name string when FD making connection to SD. May fix bug #953. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5556 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c index ccc54dc166..cd0153e8f5 100644 --- a/bacula/src/stored/dircmd.c +++ b/bacula/src/stored/dircmd.c @@ -148,7 +148,7 @@ void *handle_connection_request(void *arg) int i; bool found, quit; int bnet_stat = 0; - char name[MAX_NAME_LENGTH]; + char name[500]; if (bs->recv() <= 0) { Emsg0(M_ERROR, 0, _("Connection request failed.\n")); @@ -159,7 +159,7 @@ void *handle_connection_request(void *arg) /* * Do a sanity check on the message received */ - if (bs->msglen < 25 || bs->msglen > (int)sizeof(name)+100) { + if (bs->msglen < 25 || bs->msglen > (int)sizeof(name)) { Dmsg1(000, "msg); Emsg1(M_ERROR, 0, _("Invalid connection. Len=%d\n"), bs->msglen); bs->close(); diff --git a/bacula/src/version.h b/bacula/src/version.h index 4cf4e1e2aa..55e6c1b621 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -4,8 +4,8 @@ #undef VERSION #define VERSION "2.3.4" -#define BDATE "12 September 2007" -#define LSMDATE "12Sep07" +#define BDATE "14 September 2007" +#define LSMDATE "14Sep07" #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n" #define BYEAR "2007" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.3 b/bacula/technotes-2.3 index 658c56473e..3e8c0d755c 100644 --- a/bacula/technotes-2.3 +++ b/bacula/technotes-2.3 @@ -1,6 +1,10 @@ Technical notes on version 2.3 General: +14Sep07 +kes Fix bacula_cats.def for new db_escape_string(). +kes Increase size of name string when FD making connection to SD. + May fix bug #953. 13Sep07 kes Add code to help Dan debug 2drive-incremental-2disk test. kes Add code to try to fix bug #908.