delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/04/09/09:04:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Tue, 9 Apr 2002 15:04:21 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
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
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/

- Raw text -


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