delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/19/07:12:38

X-Spam-Check-By: sourceware.org
Date: Mon, 19 Dec 2005 13:12:26 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: setup/symlinks/gcc/chown question
Message-ID: <20051219121226.GF2965@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20051218202027 DOT GC2965 AT calimero DOT vinschen DOT de> <BAY108-F32FEC82C5C626707EDE903B53C0 AT phx DOT gbl>
Mime-Version: 1.0
In-Reply-To: <BAY108-F32FEC82C5C626707EDE903B53C0@phx.gbl>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

On Dec 18 15:51, Karl M wrote:
> Hi All...
> 
> It appears to be file permissions related. The link being broken looks like 
> it is because the read only bit on the shortcut file (the .lnk file) is 
> getting turned off. Even though this first getfacl shows write access, the 
> read only box in the windows properties is checked. after the chown -h the 
> windows properties box says not a valid link. After the chmod -R 755, the 
> windows properties shows it as a valid shortcut, but the read only box is 
> unchecked. After a chmod -R 555, the read only box is checked and Cygwin 
> thinks it is a symlink again.
> [...]

Still, I can't reproduce this.  I tried all variations I could think of,
but I couldn't break the symlink using Cygwin coreutils chmod and chown
tools.  The only way I was able to break the symlink was by using the
native Windows tool "attrib" to reset the readonly bit.

Are you sure you're using Cygwin's chmod/chown?  Did you try to run them
under strace and see what happens?


Corinna

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

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

- Raw text -


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