[Nagiosplug-devel] [ nagiosplug-Patches-2722832 ] awk subst.in/subst script path error

SourceForge.net noreply at sourceforge.net
Tue Mar 31 06:01:03 CEST 2009


Patches item #2722832, was opened at 2009-03-31 15:01
Message generated for change (Tracker Item Submitted) made by martinfoster
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2722832&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Bugfix
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Martin Foster (martinfoster)
Assigned to: Nobody/Anonymous (nobody)
Summary: awk subst.in/subst script path error

Initial Comment:
the plugins-scripts/subst.in awk script's last stage is to replace references to fully qualified commands with whatever is returned from the path subroutine.

This can trap the path derived by led() to update the  "use lib " statement at the top of scripts.  eg:
 use lib "/usr/lib/nagios/plugins";

gets updated to:
 use lib "nagios/plugins";

the second isn't valid.  I perceive the command line substitution as a cosmetic optimization, there's nothing wrong with calling commands explicitly.  They should be properly discovered by the configure stage for a given platform/distribution anyways.

patch knocks out the substitution.  May be more elegant ways to accomplish the same goal.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397599&aid=2722832&group_id=29880




More information about the Devel mailing list