CSIH file permission tests on non-NTFS broken (was Re: ssh-host-config script fails)

Charles Wilson cygwin@cwilson.fastmail.fm
Thu Aug 7 23:17:00 GMT 2008


Charles Wilson wrote:

> csih_WIN32_VOLS_WITH_ACLS="E:;//server/share;F:"
> csih_WIN32_VOLS_WITHOUT_ACLS="C:;D:;//server/othershare"
> 
> Then these lists would be checked first, before using getvolinfo for 
> unspecified mounts. That is:
> 
> csih_path_supports_acls()
> {
>     # convert $1 to win32
>     # check if it starts with any of the volumes
>     #   in csih_WIN32_VOLS_WITH_ACLS (\,/-agnostic)
>     #   and return true
>     # check if it starts with any of the volumes
>     #   in csih_WIN32_VOLS_WITHOUT_ACLS (\,/-agnostic)
>     #   and return false
>     return getvolinfo $1 | egrep "FILE_PERSISTENT_ACLS[ ]*: TRUE"
> }

As attached.

--
Chuck
-------------- next part --------------
A non-text attachment was scrubbed...
Name: csih_path_supports_acls.sh.gz
Type: application/gzip
Size: 1969 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20080807/ec3e72cb/attachment.gz>
-------------- next part --------------
--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


More information about the Cygwin mailing list