delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/27/14:08:47

X-Spam-Check-By: sourceware.org
Date: Mon, 27 Nov 2006 20:08:19 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Files with Win32 "hidden" attribute
Message-ID: <20061127190819.GN8385@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <Pine DOT CYG DOT 4 DOT 64 DOT 0611271814420 DOT 2656 AT jaipur>
Mime-Version: 1.0
In-Reply-To: <Pine.CYG.4.64.0611271814420.2656@jaipur>
User-Agent: Mutt/1.4.2i
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
Note-from-DJ: This may be spam

On Nov 27 18:23, John Smith wrote:
> The archive contains repeated messages to the effect that Cygwin has
> no concept of "hidden" files (except for dot-files), totally ignores
> the "hidden" attribute, etc.
> 
> However, while I can create, read, add to (using ">>") and delete
> files with this attribute set, I cannot overwrite them. For example:
> 
> jaipur:~$ echo xxx >foo
> jaipur:~$ echo yyy >foo
> jaipur:~$ attrib +h foo
> jaipur:~$ echo zzz >foo
> bash: foo: Permission denied
> jaipur:~$ echo zzz >bar
> jaipur:~$ cp bar foo
> cp: cannot create regular file `foo': Permission denied
> jaipur:~$ attrib -h foo
> jaipur:~$ echo zzz >foo
> jaipur:~$ cp bar foo
> jaipur:~$
> 
> In case this is happening because of some local misconfiguration, I've
> attached cygcheck output.
> 
> If it is actually a genuine problem, is it something that can be
> fixed? It's a nuisance having Cygwin's behaviour affected by something
> it officially takes no notice of.

Thanks for the report.  I found a tiny comment in MSDN which explains
why this happens.  I'll apply an appropriate patch to Cygwin.


Thanks again,
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