summaryrefslogtreecommitdiffstats
path: root/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff')
-rw-r--r--web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff19
1 files changed, 19 insertions, 0 deletions
diff --git a/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff b/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
new file mode 100644
index 0000000..6eb498e
--- /dev/null
+++ b/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
@@ -0,0 +1,19 @@
1*** nagios-plugins-1.4.5/plugins/check_procs.c Sun Oct 22 17:03:31 2006
2--- nagios-plugins-1.4.5/plugins/check_procs.c.new Mon Jan 8 14:28:10 2007
3***************
4*** 193,199 ****
5 strip (procargs);
6
7 /* Some ps return full pathname for command. This removes path */
8! procprog = base_name(procprog);
9
10 /* we need to convert the elapsed time to seconds */
11 procseconds = convert_to_seconds(procetime);
12--- 193,199 ----
13 strip (procargs);
14
15 /* Some ps return full pathname for command. This removes path */
16! strcpy(procprog, base_name(procprog));
17
18 /* we need to convert the elapsed time to seconds */
19 procseconds = convert_to_seconds(procetime);