aboutsummaryrefslogtreecommitdiff
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-13 08:54:57 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-07-13 08:54:57 +0000
commit6b9cc76d0a27631fbab19a31ab8bd46e143b7580 (patch)
tree7153d03691decf028fa422dac86d3aec46908f54 /plugins/check_procs.c
parenta46e358d68027289cffaffeb7a4b32ababb2105b (diff)
downloadmonitoring-plugins-6b9cc76d0a27631fbab19a31ab8bd46e143b7580.tar.gz
Using coreutils' base_name function because of portability issues with
Tru64 git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1450 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index f6438f27..82a21eb2 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -189,7 +189,7 @@ main (int argc, char **argv)
strip (procargs);
/* Some ps return full pathname for command. This removes path */
- procprog = basename(procprog);
+ procprog = base_name(procprog);
/* we need to convert the elapsed time to seconds */
procseconds = convert_to_seconds(procetime);