X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=4.3 required=5.0 tests=AWL,BAYES_40,BOTNET,RCVD_IN_DNSWL_NONE,TW_JR X-Spam-Check-By: sourceware.org Message-id: <4E271B54.3010104@cygwin.com> Date: Wed, 20 Jul 2011 14:15:48 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [ -w filename ] returns true when permissions are -r--r--r-- References: <1311185147 DOT 5730 DOT 20 DOT camel AT raker DOT ateb DOT com> <1311185246 DOT 5730 DOT 21 DOT camel AT raker DOT ateb DOT com> In-reply-to: <1311185246.5730.21.camel@raker.ateb.com> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 7/20/2011 2:07 PM, Reid Thompson wrote: > 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 DOT thompson AT ws-jrt ~ >> $ ls -rlt afile >> -r--r--r-- 1 reid.thompson Domain Users 6 2011-07-20 14:02 afile >> >> reid DOT thompson AT 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) Works fine for me with 1.7.9. Upgrading may help. You also should check the filesystem you're on. Local NTFS is your best bet here. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- 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