X-Spam-Check-By: sourceware.org Date: Mon, 27 Nov 2006 20:08:19 +0100 From: Corinna Vinschen 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 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/