Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 9 Apr 2002 15:04:21 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: tar won't restore permissions Message-ID: <20020409150421.B1127@cygbert.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com References: <3CB23EF3 DOT 1040504 AT cornell DOT edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CB23EF3.1040504@cornell.edu> User-Agent: Mutt/1.3.22.1i On Mon, Apr 08, 2002 at 09:08:03PM -0400, Ivan Dobrianov wrote: > Ok, I posted this question more than a year ago ... and the problem is > still present in the latest Cygwin builds: > > tar xpvf myArchive.tar > > will not restore read-only permissions, i.e. files with r-- perms will If you're talking about the FAT attribute FILE_ATTRIBUTE_READONLY, you're right. This bit isn't set in the open() call in Cygwin. Setting the NTFS permissions with ntsec or the extended attribute with ntea is ok, though. However, I've checked in a fix. Try the next developers snapshot or current from CVS. Thanks for the report, Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/