summaryrefslogtreecommitdiffstats
path: root/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
diff options
context:
space:
mode:
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);