delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/01/12:26:21

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B15556A.4080108@gmail.com>
Date: Tue, 01 Dec 2009 17:42:02 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Nasty permissions / pathing bug on 1.7
References: <BE3716D1FE6B45B6A50DEB1B448E71ED AT multiplay DOT co DOT uk> <4B12FB72 DOT 9090206 AT x-ray DOT at> <270B141F0B5B480C9A668369AA2C53A3 AT liv3dworkpc> <5E63D05B501C4339A7D7F8909505E828 AT multiplay DOT co DOT uk>
In-Reply-To: <5E63D05B501C4339A7D7F8909505E828@multiplay.co.uk>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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
> 
> $ ls -l /tmp/test.exe
> -rw-r--r-- 1 DKAdmin None 0 2009-12-01 17:36 /tmp/test.exe
> 

  I found a clue, but I don't know what it means:

> $ ls -l 'F:/cygwin-1.7/tmp/test.exe'
> -rwxr-xr-x 1 DKAdmin None 0 2009-12-01 17:36 F:/cygwin-1.7/tmp/test.exe
> 
> $ ls -l 'F:\cygwin-1.7\tmp\test.exe'
> -rwxr-xr-x 1 DKAdmin None 0 2009-12-01 17:36 F:\cygwin-1.7\tmp\test.exe
> 
> $

  And no, I don't know why I didn't get the warning.  I have nothing in my
$CYGWIN.

    cheers,
      DaveK


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019