This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Removal of hard links with count > 1 for files that are in use


On Apr 29 15:01, Marcus Picasso wrote:
> $ ln /bin/rm.exe ./foo.exe
> 
> $ /bin/rm.exe -f ./foo.exe
> rm: cannot remove `foo.exe': Permission denied
> 
> Is this expected behaviour? 

I was surprised, too, but the answer is "apparently yes".  Trying to
remove the hardlink results in an ERROR_ACCESS_DENIED from the Win32
calls.  Go figure.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin@cygwin.com
Red Hat, Inc.

--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]