about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-12-18 08:51:19 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2013-12-18 08:51:19 -0800
commit5f36aece2a3c9483d6e2835917953bcb9b70b431 (patch)
treec4bb35a2872c202cfad2c9e6a8670cec9c2f7bb2
parent626c580148a58d92515c04df607eaa06d86f15f9 (diff)
downloadzsh-5f36aece2a3c9483d6e2835917953bcb9b70b431.tar.gz
zsh-5f36aece2a3c9483d6e2835917953bcb9b70b431.tar.xz
zsh-5f36aece2a3c9483d6e2835917953bcb9b70b431.zip
32150: fix file reference in executable ownership test
-rw-r--r--ChangeLog5
-rw-r--r--Completion/compaudit2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 02f34097e..791b5a9c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Completion/compaudit b/Completion/compaudit
index 75742a0fb..00125e4db 100644
--- a/Completion/compaudit
+++ b/Completion/compaudit
@@ -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