pkg-monitoring-plugins/debian/patches/36_check_ldap_empty_base.dpatch

20 lines
857 B
Text
Executable file

#! /bin/sh /usr/share/dpatch/dpatch-run
## 36_check_ldap_empty_base.dpatch by Jan Wagner <waja@cyconet.org>
## patch provided by Stephane Chazelas <stephane@artesyncp.com>
##
## DP: allow empty ldap base (bugs.debian.org/479984)
## DP: Upstream bug is: https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1985489&group_id=29880
@DPATCH@
diff -urNad nagios-plugins-1.4.12~/plugins/check_ldap.c nagios-plugins-1.4.12/plugins/check_ldap.c
--- nagios-plugins-1.4.12~/plugins/check_ldap.c 2008-06-06 13:40:44.000000000 +0200
+++ nagios-plugins-1.4.12/plugins/check_ldap.c 2008-06-06 13:42:02.000000000 +0200
@@ -378,7 +378,7 @@
if (ld_host==NULL || strlen(ld_host)==0)
usage4 (_("Please specify the host name\n"));
- if (ld_base==NULL || strlen(ld_base)==0)
+ if (ld_base == NULL)
usage4 (_("Please specify the LDAP base\n"));
return OK;