www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/07/09:22:50

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 7 Jan 2009 15:22:28 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: [1.7] Cygwin 1.7 misnames hardlinks
Message-ID: <20090107142228.GA19133@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4951B5EB DOT 5050705 AT i12 DOT com>
MIME-Version: 1.0
In-Reply-To: <4951B5EB.5050705@i12.com>
User-Agent: Mutt/1.5.17 (2007-11-01)
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

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/

- Raw text -


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