This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [ -w filename ] returns true when permissions are -r--r--r--
- From: Reid Thompson <Reid dot Thompson at ateb dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 20 Jul 2011 14:07:26 -0400
- Subject: Re: [ -w filename ] returns true when permissions are -r--r--r--
- References: <1311185147.5730.20.camel@raker.ateb.com>
- Reply-to: Reid dot Thompson at ateb dot com
On Wed, 2011-07-20 at 14:05 -0400, Reid Thompson wrote:
> Is this broken? Or a known windows/cygwin discrepancy? Or am I missing
> something with my posix/windows file permissions settings
>
> reid.thompson@ws-jrt ~
> $ ls -rlt afile
> -r--r--r-- 1 reid.thompson Domain Users 6 2011-07-20 14:02 afile
>
> reid.thompson@ws-jrt ~
> $ if [ -w afile ]; then echo " file is writeable"; else echo " file
> is not writeable"; fi
> file is writeable
>
$ uname -r
1.7.7(0.230/5/3)
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple