Lines Matching refs:isdir
115 # $1 isdir indicate if the target is a directory
121 function cal_bits #isdir bits bits_limit acl_access ctrl
123 typeset -i isdir=$1
165 if (( isdir == 0 )) ; then
175 if (( isdir == 0 )); then
183 if (( isdir == 0 )); then
203 # $1 isdir indicate if the target is a directory
206 function translate_acl #isdir acl
208 typeset -i isdir=$1
212 if (( isdir != 0 )); then
220 acl=$prefix:$(cal_bits $isdir 7 7 $acl 1):$action
243 typeset -i bits=0 obits=0 bits_owner=0 isdir=0
246 (( isdir = 1 ))
279 expect1=$(translate_acl $isdir $expect1)
339 expect2=$prefix:$(cal_bits $isdir $obits $bits_owner $expect2 1):allow
341 expect2=$prefix:$(cal_bits $isdir $obits $obits $expect2 1):allow
345 priv=$(cal_bits $isdir $obits $bits_owner $expect2 0)
349 expect1=$(translate_acl $isdir $expect1)