summary refs log tree commit diff
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2014-09-26 17:18:35 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2014-09-26 17:18:35 +0800
commit842050da1c14d7dbe365cd750032fcd8eaaa1db2 (patch)
treec1c4199fd63faf99695394c293880a4a5a842e49
parent[BUILTIN] Small optimisation of command -pv change (diff)
downloaddash-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--ChangeLog1
-rw-r--r--src/var.h2
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[];