about summary refs log tree commit diff
path: root/Completion/compaudit
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2011-09-10 17:09:50 +0000
committerBart Schaefer <barts@users.sourceforge.net>2011-09-10 17:09:50 +0000
commit571015bc32e6ff3ed648a6b351d05272329386bc (patch)
treea9505565299bc78eb79d70a3a11e8d5a47cd287a /Completion/compaudit
parentfdfd451861d2221b728c611558ba86480fdfe7ed (diff)
downloadzsh-571015bc32e6ff3ed648a6b351d05272329386bc.tar.gz
zsh-571015bc32e6ff3ed648a6b351d05272329386bc.tar.xz
zsh-571015bc32e6ff3ed648a6b351d05272329386bc.zip
29760: fix references to _i_ulwdirs
Diffstat (limited to 'Completion/compaudit')
-rw-r--r--Completion/compaudit7
1 files changed, 4 insertions, 3 deletions
diff --git a/Completion/compaudit b/Completion/compaudit
index df431afb1..72e0b62ba 100644
--- a/Completion/compaudit
+++ b/Completion/compaudit
@@ -102,7 +102,7 @@ _i_wdirs=( ${^fpath}(N-f:g+w:,-f:o+w:,-^u0u${EUID})
 # that this has not happened, and pick the best group.
 
 if (( $#_i_wdirs )); then
-  local GROUP GROUPMEM _i_pw _i_gid _i_ulwdirs
+  local GROUP GROUPMEM _i_pw _i_gid
   if ((UID == EUID )); then
     getent group $LOGNAME | IFS=: read GROUP _i_pw _i_gid GROUPMEM
   else
@@ -117,8 +117,9 @@ fi
 
 if [[ -f /etc/debian_version ]]
 then
-_i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
-_i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdir}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
+  local _i_ulwdirs
+  _i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
+  _i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdirs}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
 fi
 
 _i_wdirs=( $_i_wdirs ${^fpath}.zwc^([^_]*|*~)(N-^u0u${EUID}) )