mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
32150: fix file reference in executable ownership test
This commit is contained in:
parent
626c580148
commit
5f36aece2a
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-12-18 Barton E. Schaefer <schaefer@zsh.org>
|
||||
|
||||
* 32150: Completion/compaudit: Reference loop variable rather
|
||||
than absolute path in executable ownership test
|
||||
|
||||
2013-12-17 Phil Pennock <pdpennock@users.sourceforge.net>
|
||||
|
||||
* 32143: INSTALL: Fix --enable-custom-patchlevel name in INSTALL
|
||||
|
|
|
@ -101,7 +101,7 @@ for _i_exe in $_i_exes; do
|
|||
if [[ -e $_i_exe ]] ;then
|
||||
if zmodload -F zsh/stat b:zstat 2>/dev/null; then
|
||||
local -A _i_stathash
|
||||
if zstat -H _i_stathash /proc/$$/exe &&
|
||||
if zstat -H _i_stathash $_i_exe &&
|
||||
[[ $_i_stathash[uid] -ne 0 ]]; then
|
||||
_i_owners+="u${_i_stathash[uid]}"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue