aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-05-15 11:08:51 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-05-15 11:08:51 +0000
commit7a40048a9d7ce145c579908eec88ff698ebd1b9e (patch)
treeebd191a536955a2ff213fef185e5233cd98bdd41 /net-mgmt
parent73a15551c8e46c5110a7173988499fc390b0c894 (diff)
downloadports-7a40048a9d7ce145c579908eec88ff698ebd1b9e.tar.gz
ports-7a40048a9d7ce145c579908eec88ff698ebd1b9e.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/nagios-check_bacula/Makefile1
-rw-r--r--net-mgmt/nagios-check_bacula/files/patch-src-check_bacula-authenticate.c20
2 files changed, 21 insertions, 0 deletions
diff --git a/net-mgmt/nagios-check_bacula/Makefile b/net-mgmt/nagios-check_bacula/Makefile
index 1465421a9ffb..5a067d580b4e 100644
--- a/net-mgmt/nagios-check_bacula/Makefile
+++ b/net-mgmt/nagios-check_bacula/Makefile
@@ -7,6 +7,7 @@
PORTNAME= check_bacula
PORTVERSION= 3.0.0
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= SF/bacula
PKGNAMEPREFIX= nagios-
diff --git a/net-mgmt/nagios-check_bacula/files/patch-src-check_bacula-authenticate.c b/net-mgmt/nagios-check_bacula/files/patch-src-check_bacula-authenticate.c
new file mode 100644
index 000000000000..6ebcc46e0722
--- /dev/null
+++ b/net-mgmt/nagios-check_bacula/files/patch-src-check_bacula-authenticate.c
@@ -0,0 +1,20 @@
+--- src/check_bacula/authenticate.c.orig 2007-11-22 12:45:01.000000000 +0100
++++ src/check_bacula/authenticate.c 2009-05-14 20:45:52.000000000 +0200
+@@ -57,7 +57,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";
+
+ /* Forward referenced functions */
+
+@@ -169,7 +169,7 @@
+ }
+ Dmsg1(110, "<stored: %s", fd->msg);
+ stop_bsock_timer(tid);
+- if (strncmp(fd->msg, FDOKhello, sizeof(FDOKhello)) != 0) {
++ if (strncmp(fd->msg, FDOKhello, sizeof(FDOKhello)-1) != 0) {
+ return 0;
+ }
+ return 1;