summaryrefslogtreecommitdiffstats
path: root/web/attachments/210386-nagios-plugins-check_procs-procprog-fix.diff
blob: 6eb498e960b624f4e1422c2fad4a849723942239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
*** nagios-plugins-1.4.5/plugins/check_procs.c	Sun Oct 22 17:03:31 2006
--- nagios-plugins-1.4.5/plugins/check_procs.c.new	Mon Jan  8 14:28:10 2007
***************
*** 193,199 ****
  			strip (procargs);
  
  			/* Some ps return full pathname for command. This removes path */
! 			procprog = base_name(procprog);
  
  			/* we need to convert the elapsed time to seconds */
  			procseconds = convert_to_seconds(procetime);
--- 193,199 ----
  			strip (procargs);
  
  			/* Some ps return full pathname for command. This removes path */
! 			strcpy(procprog, base_name(procprog));
  
  			/* we need to convert the elapsed time to seconds */
  			procseconds = convert_to_seconds(procetime);