hard link error on Vista with recent snapshots
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Jan 21 16:16:00 GMT 2008
On Jan 19 07:30, Herb Maeder wrote:
> I'm seeing a error when creating hard links under Vista using the
> cygwin1.dll snapshots starting at cygwin1-20070802.dll (through at
> least cygwin1-20080112.dll).
>
> To reproduce:
> * stop/exit all cygwin processes
> * replace bin/cygwin1.dll with one of the snapshot dlls above
> * fire up bash and run the following commands:
> % rm -rf foo bar
> % touch foo
> % ln foo bar
> ln: creating hard link `bar' => `foo': Permission denied
Thanks for the report. I fixed this in CVS. As it turned out, you
can't open a file with access flags set to 0. ZwOpenFile requires at
least READ_CONTROL access.
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/
More information about the Cygwin
mailing list