Removal of hard links with count > 1 for files that are in use
Corinna Vinschen
corinna-cygwin@cygwin.com
Fri Apr 29 12:47:00 GMT 2005
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/
More information about the Cygwin
mailing list