mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 17:24:50 +01:00
users/6663: fix compaudit testing of symlinks
This commit is contained in:
parent
b385458079
commit
9d119b990f
2 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-10-07 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* users/6663: Completion/compaudit: follow symlinks when checking
|
||||||
|
permissions on directories in the fpath; also in case of symlinks,
|
||||||
|
find parent with ${^fpath:h} rather than ${^fpath}/..
|
||||||
|
|
||||||
2003-09-10 Wayne Davison <wayned@users.sourceforge.net>
|
2003-09-10 Wayne Davison <wayned@users.sourceforge.net>
|
||||||
|
|
||||||
* users/6529 + unposted: StartupFiles/zshenv: updated the comments
|
* users/6529 + unposted: StartupFiles/zshenv: updated the comments
|
||||||
|
|
|
@ -102,11 +102,11 @@ done <<(getent group)
|
||||||
# (including zwc files)
|
# (including zwc files)
|
||||||
|
|
||||||
if [[ $GROUP == $LOGNAME && ( -z $GROUPMEM || $GROUPMEM == $LOGNAME ) ]]; then
|
if [[ $GROUP == $LOGNAME && ( -z $GROUPMEM || $GROUPMEM == $LOGNAME ) ]]; then
|
||||||
_i_wdirs=( ${^fpath}(Nf:g+w:^g:${GROUP}:,f:o+w:,^u0u${EUID})
|
_i_wdirs=( ${^fpath}(N-f:g+w:^g:${GROUP}:,-f:o+w:,-^u0u${EUID})
|
||||||
${^fpath}/..(Nf:g+w:^g:${GROUP}:,f:o+w:,^u0u${EUID}) )
|
${^fpath:h}(N-f:g+w:^g:${GROUP}:,-f:o+w:,-^u0u${EUID}) )
|
||||||
else
|
else
|
||||||
_i_wdirs=( ${^fpath}(Nf:g+w:,f:o+w:,^u0u${EUID})
|
_i_wdirs=( ${^fpath}(N-f:g+w:,-f:o+w:,-^u0u${EUID})
|
||||||
${^fpath}/..(Nf:g+w:,f:o+w:,^u0u${EUID}) )
|
${^fpath:h}(N-f:g+w:,-f:o+w:,-^u0u${EUID}) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f /etc/debian_version ]]
|
if [[ -f /etc/debian_version ]]
|
||||||
|
@ -115,8 +115,8 @@ _i_ulwdirs=( ${(M)_i_wdirs:#/usr/local/*} )
|
||||||
_i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdir}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
|
_i_wdirs=( ${_i_wdirs:#/usr/local/*} ${^_i_ulwdir}(Nf:g+ws:^g:staff:,f:o+w:,^u0) )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_i_wdirs=( $_i_wdirs ${^fpath}.zwc^([^_]*|*~)(N^u0u${EUID}) )
|
_i_wdirs=( $_i_wdirs ${^fpath}.zwc^([^_]*|*~)(N-^u0u${EUID}) )
|
||||||
_i_wfiles=( ${^fpath}/^([^_]*|*~)(N^u0u${EUID}) )
|
_i_wfiles=( ${^fpath}/^([^_]*|*~)(N-^u0u${EUID}) )
|
||||||
|
|
||||||
case "${#_i_wdirs}:${#_i_wfiles}" in
|
case "${#_i_wdirs}:${#_i_wfiles}" in
|
||||||
(0:0) _i_q= ;;
|
(0:0) _i_q= ;;
|
||||||
|
|
Loading…
Reference in a new issue