[Nagiosplug-checkins] nagiosplug/plugins-scripts subst.in,1.5,1.6
Ton Voon
tonvoon at users.sourceforge.net
Tue Aug 30 15:12:17 CEST 2005
Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5792
Modified Files:
subst.in
Log Message:
Better comments for what the substitutions are doing
Index: subst.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/subst.in,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- subst.in 2 Jul 2003 15:01:22 -0000 1.5
+++ subst.in 30 Aug 2005 22:11:42 -0000 1.6
@@ -58,12 +58,12 @@
sub(/\=.*$/,"='@with_trusted_path@' # autoconf-derived");
}
-# Specific programs
-
+# If a script contains a reference to a fully qualified command,
+# subst will replace the fully qualified command with whatever is
+# returned from the which subroutine
#
/^[^#]/ && /(\/.*)?\/(bin|sbin|lib|libexec)\// {
match($0,/(\/.*)?\/(bin|sbin|lib|libexec)\/[-_a-zA-Z0-9]+/);
- start=RSTART+RLENGTH;
c=substr($0,RSTART,RLENGTH);
sub(c,which(c,path));
}
More information about the Commits
mailing list