delorie.com/archives/browse.cgi | search |
Message-Id: | <200801212035.m0LKZGo6030356@delorie.com> |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Herb Maeder <maeder AT maeder DOT org> |
In-reply-to: | Corinna Vinschen <corinna-cygwin@cygwin.com> 's message of Mon, 21 Jan 2008 16:23:44 +0100. |
Subject: | Re: hard link error on Vista with recent snapshots |
Date: | Mon, 21 Jan 2008 12:33:41 -0800 |
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 Jan 21 16:23, Corinna Vinschen wrote: > On Jan 21 15:53, Corinna Vinschen wrote: > > 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 > ^^^^^ > ...in Vista/Longhorn. > > > least READ_CONTROL access. > ^^^^ > ...in Vista/Longhorn. 0 works fine in earlier > Windows versions. Excellent! Thank you very much for the explanation and the quick fix. Herb. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |