diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-09-26 17:18:35 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-09-26 17:18:35 +0800 |
commit | 842050da1c14d7dbe365cd750032fcd8eaaa1db2 (patch) | |
tree | c1c4199fd63faf99695394c293880a4a5a842e49 | |
parent | [BUILTIN] Small optimisation of command -pv change (diff) | |
download | dash-842050da1c14d7dbe365cd750032fcd8eaaa1db2.tar.gz dash-842050da1c14d7dbe365cd750032fcd8eaaa1db2.zip |
[BUILTIN] Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin
Exclude /usr/local from command -p PATH. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/var.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index eb3bbc3..ba67b6e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2014-09-26 Herbert Xu <herbert@gondor.apana.org.au> * Small optimisation of command -pv change. + * Set command -p path to /usr/sbin:/usr/bin:/sbin:/bin. 2014-09-26 Harald van Dijk <harald@gigawatt.nl> diff --git a/src/var.h b/src/var.h index 79ee71a..872e2db 100644 --- a/src/var.h +++ b/src/var.h @@ -107,7 +107,7 @@ extern const char defifsvar[]; extern const char defifs[]; #endif extern const char defpathvar[]; -#define defpath (defpathvar + 5) +#define defpath (defpathvar + 36) extern int lineno; extern char linenovar[]; |