From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- web/attachments/222424-check_icmp.32bit-pid_t.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 web/attachments/222424-check_icmp.32bit-pid_t.patch (limited to 'web/attachments/222424-check_icmp.32bit-pid_t.patch') diff --git a/web/attachments/222424-check_icmp.32bit-pid_t.patch b/web/attachments/222424-check_icmp.32bit-pid_t.patch new file mode 100644 index 0000000..a3154ed --- /dev/null +++ b/web/attachments/222424-check_icmp.32bit-pid_t.patch @@ -0,0 +1,17 @@ +Index: plugins-root/check_icmp.c +=================================================================== +RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_icmp.c,v +retrieving revision 1.11 +diff -u -r1.11 check_icmp.c +--- plugins-root/check_icmp.c 8 Mar 2007 09:09:38 -0000 1.11 ++++ plugins-root/check_icmp.c 27 Mar 2007 06:29:32 -0000 +@@ -395,7 +395,8 @@ + environ = NULL; + + /* use the pid to mark packets as ours */ +- pid = getpid(); ++ /* Some systems have 32-bit pid_t so mask off only 16 bits */ ++ pid = getpid() & 0xffff; + /* printf("pid = %u\n", pid); */ + + /* get calling name the old-fashioned way for portability instead -- cgit v1.2.3-74-g34f1