X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 1 Dec 2009 18:30:36 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Nasty permissions / pathing bug on 1.7
Message-ID: <20091201173036.GE8059@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <BE3716D1FE6B45B6A50DEB1B448E71ED@multiplay.co.uk>  <4B12FB72.9090206@x-ray.at>  <270B141F0B5B480C9A668369AA2C53A3@liv3dworkpc>  <5E63D05B501C4339A7D7F8909505E828@multiplay.co.uk>  <4B15556A.4080108@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <4B15556A.4080108@gmail.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Dec  1 17:42, Dave Korn wrote:
> Steven Hartland wrote:
> > Just to be 100% clear its not the fact that the script errors, its the fact
> >  that the permissions after the initial DOS pathed chmod doesn't actually 
> > set the permissions correctly and doesn't throw any error.
> 
>   Also, it's not just perl, you can reproduce it in a shell:
> 
> > $ ls -l /tmp/test.exe
> > ls: cannot access /tmp/test.exe: No such file or directory
> > 
> > $ touch /tmp/test.exe
> > 
> > $ ls -l /tmp/test.exe
> > -rw-r--r-- 1 DKAdmin None 0 2009-12-01 17:36 /tmp/test.exe
> > 
> > $ cygpath -w /tmp/test.exe
> > F:\cygwin-1.7\tmp\test.exe
> > 
> > $ chmod 777 'F:/cygwin-1.7/tmp/test.exe'
> > 
> > $ echo $?
> > 0

That's by design.  When you use Win32 paths, instead of POSIX paths,
you will get Win32 default permission handling.  Or, in other words,
for all DOS paths the mount mode is "noacl".


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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

