39463: an additional test for default system path

This commit is contained in:
Martijn Dekker 2016-09-27 13:15:23 +01:00 committed by Peter Stephenson
parent b32d974000
commit edfdce9981
2 changed files with 5 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2016-09-28 Peter Stephenson <p.stephenson@samsung.com>
* Martijn Dekker: 39463: configure.ac: another way of getting
the default system path.
* 39460: Src/params.c, Src/zsh.h: don't import PS4 if running as
root. Currently no known exploit with this in zsh as xtrace
needs an explicit option setting, so this is just precautionary.

View file

@ -2035,6 +2035,8 @@ AC_CACHE_VAL(zsh_cv_cs_path,
zsh_cv_cs_path=`getconf _CS_PATH`
elif getconf CS_PATH >/dev/null 2>&1; then
zsh_cv_cs_path=`getconf CS_PATH`
elif getconf PATH >/dev/null 2>&1; then
zsh_cv_cs_path=`getconf PATH`
else
zsh_cv_cs_path="/bin:/usr/bin"
fi])