From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17898 invoked by alias); 7 Jan 2009 14:22:44 -0000 Received: (qmail 17890 invoked by uid 22791); 7 Jan 2009 14:22:43 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Jan 2009 14:22:39 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7B6406D4FC3; Wed, 7 Jan 2009 15:22:28 +0100 (CET) Date: Wed, 07 Jan 2009 14:29:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: [1.7] Cygwin 1.7 misnames hardlinks Message-ID: <20090107142228.GA19133@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4951B5EB.5050705@i12.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4951B5EB.5050705@i12.com> User-Agent: Mutt/1.5.17 (2007-11-01) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2009-01/txt/msg00154.txt.bz2 On Dec 23 20:09, Lawrence Mayer wrote: > Cygwin 1.7-37 and -36 misname certain hardlinks by adding an extra .exe > extention: e.g. > ln vgaoem.fon .. > creates vgaoem.fon.exe in the parent directory, not vgaoem.fon as expected. > > The same bug occurs with > cp -l vgaoem.fon .. > > This bug occurs when hardlinking all .fon files I have tried, most .sys > files, and some .dll, .com, .drv, .scr, .tlb, ...etc files. The bug appears > consistent: a given file either always or never gets misnamed. I reproduced and (hopefully) fixed it in CVS. Thanks for the report. However, there's another problem which I'm puzzeling over when trying the above. I created a hardlink from C:\WINDOWS\Fonts\vgaoem.fon to the same file in my home directory: $ pwd /home/corinna $ ln /cygdrive/c/WINDOWS/Fonts/vgaoem.fon . $ ls -l vga* -rwxrwx---+ 2 Administrators SYSTEM 5168 Feb 28 2006 vgaoem.fon That's nice, but then: $ rm -f vgaoem.fon rm: cannot remove `vgaoem.fon': Permission denied And that occurs even though I'm administrator and the unlink(2) call uses the FILE_OPEN_FOR_BACKUP_INTENT flag. The same happens with all hardlinks to files used by the system. The NT status code returned when trying to set the delete disposition flag is C0000121, STATUS_CANNOT_DELETE. None of the Windows native methods to delete these hardlinks works. I'm still puzzeled how to get rid of them. Does anybody knows how to do that? 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/