diff options
| author | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-28 13:22:34 +0100 |
|---|---|---|
| committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2014-02-28 13:22:34 +0100 |
| commit | e260efb25690b13002a0bf432507f66bdad90f02 (patch) | |
| tree | 6e3fa00ba0c82457b83cdfaca050b8f31199e602 /plugins-scripts/subst.in | |
| parent | 5f77fa7510afda19c832b2497f4799d9648c532e (diff) | |
| parent | 0a3252d88d148a8cb21774cd3ae6a1cb1fbb004c (diff) | |
| download | monitoring-plugins-e260efb25690b13002a0bf432507f66bdad90f02.tar.gz | |
Merge remote-tracking branch 'awiddersheim/fix_trusted_path'
* awiddersheim/fix_trusted_path:
Fix trusted path
Conflicts:
plugins-scripts/check_ntp.pl
plugins-scripts/subst.in
Closes #1212.
Diffstat (limited to 'plugins-scripts/subst.in')
| -rw-r--r-- | plugins-scripts/subst.in | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins-scripts/subst.in b/plugins-scripts/subst.in index 66777d75..c730b770 100644 --- a/plugins-scripts/subst.in +++ b/plugins-scripts/subst.in | |||
| @@ -45,17 +45,9 @@ BEGIN { | |||
| 45 | sub(c,which(c,path)); | 45 | sub(c,which(c,path)); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | # Trusted path mechanism (deprecated) | 48 | # Trusted path mechanism |
| 49 | 49 | /@trusted_path@/ {sub(/@trusted_path@/,"@with_trusted_path@");} | |
| 50 | /^[ \t]*\$ENV[ \t]*\{[ \t'"]*PATH[ \t"']*\}[ \t]*=/ { | ||
| 51 | sub(/\=[ \t]*['"][^"']+["']/,"='@with_trusted_path@' # autoconf-derived"); | ||
| 52 | } | ||
| 53 | |||
| 54 | /^[\t ]*(export[\t ]*)?PATH[\t ]*=['"]+.+["']$/ { | ||
| 55 | sub(/\=.*$/,"='@with_trusted_path@' # autoconf-derived"); | ||
| 56 | } | ||
| 57 | 50 | ||
| 58 | { | 51 | { |
| 59 | print; | 52 | print; |
| 60 | } | 53 | } |
| 61 | |||
