aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2009-05-15 19:08:51 +0800
committerpav <pav@FreeBSD.org>2009-05-15 19:08:51 +0800
commitb0cb41909e119b169e508454cb5e8f6c3c637bcd (patch)
tree92755fd2dbe9eb5b4fce82910643ff2afca1678e /net-mgmt
parent5ef0858e53e929375b81c85d832915fe5f14fb43 (diff)
downloadfreebsd-ports-graphics-b0cb41909e119b169e508454cb5e8f6c3c637bcd.tar.gz
freebsd-ports-graphics-b0cb41909e119b169e508454cb5e8f6c3c637bcd.tar.zst
freebsd-ports-graphics-b0cb41909e119b169e508454cb5e8f6c3c637bcd.zip
- Fix runtime problem (obtained from vendor)
PR: ports/134553 Submitted by: <freebsd@troback.com> (maintainer)
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 1465421a9ff..5a067d580b4 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 00000000000..6ebcc46e072
--- /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;