]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/3.0.2-Add-more-info-when-SD-connection-refused.patch
Revert "Regenerated Ingres code using esqlcc"
[bacula/bacula] / bacula / patches / 3.0.2-Add-more-info-when-SD-connection-refused.patch
1 From 729f8b83b1002ae272e75a6139631846946f728f Mon Sep 17 00:00:00 2001
2 From: Kern Sibbald <kern@sibbald.com>
3 Date: Thu, 10 Sep 2009 15:19:13 +0200
4 Subject: [PATCH] Add more info when SD connection refused
5
6 as mentioned in bug #1371
7 ---
8  bacula/src/stored/dircmd.c |    4 ++--
9  1 files changed, 2 insertions(+), 2 deletions(-)
10
11 diff --git a/bacula/src/stored/dircmd.c b/bacula/src/stored/dircmd.c
12 index 4f4a2d7..b011802 100644
13 --- a/bacula/src/stored/dircmd.c
14 +++ b/bacula/src/stored/dircmd.c
15 @@ -152,7 +152,7 @@ void *handle_connection_request(void *arg)
16     char tbuf[100];
17  
18     if (bs->recv() <= 0) {
19 -      Emsg0(M_ERROR, 0, _("Connection request failed.\n"));
20 +      Emsg1(M_ERROR, 0, _("Connection request from %s failed.\n"), bs->who());
21        bs->close();
22        return NULL;
23     }
24 @@ -162,7 +162,7 @@ void *handle_connection_request(void *arg)
25      */
26     if (bs->msglen < 25 || bs->msglen > (int)sizeof(name)) {
27        Dmsg1(000, "<filed: %s", bs->msg);
28 -      Emsg1(M_ERROR, 0, _("Invalid connection. Len=%d\n"), bs->msglen);
29 +      Emsg2(M_ERROR, 0, _("Invalid connection from %s. Len=%d\n"), bs->who(), bs->msglen);
30        bs->close();
31        return NULL;
32     }
33 -- 
34 1.6.4.2
35