www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/25/11:06:23

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Mon, 25 Jan 2010 17:05:34 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: chmod and DOS vs POSIX paths
Message-ID: <20100125160534.GO2402@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <27307971 DOT post AT talk DOT nabble DOT com>
MIME-Version: 1.0
In-Reply-To: <27307971.post@talk.nabble.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Jan 25 07:55, brassrat wrote:
> 
> The source control package i use at work is sensitive to the 'read-only'
> attribute of Windows files.
> prior to 1.7, the command 'chmod -w DIR/FILE' worked fine.
> now, with 1.7, chmod -w FILE no longer sets the read-only attribute - i
> guess because 
> fortunately, there is a 'work-around': chmod -w 'DIR\FILE' (or chmod -w
> $(cygpath -w DIR/FILE))
> i.e., using a DOS path makes cygwin treat the file system as not having acls
> and i guess that kicks in the old behavior.
> 
> Is this the only way to change the 'read-only' attribute on windows files?
> Would it make sense for something like: chmod ugo-w DIR/FILE to set it?

The R/O attribute is really in the way on filesystems supporting ACLs
due to the way it's implemented.  Therefore, no, Cygwin will not return
to set the flag in calls to chmod.  The official workaround is, use
the Windows attrib command.


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

- Raw text -


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