X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Mon, 21 Jan 2008 16:23:44 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: hard link error on Vista with recent snapshots
Message-ID: <20080121152344.GG30866@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <0ML3Dg-1JGFfa2pkd-0005xb@mx.kundenserver.de> <20080121145327.GB30866@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080121145327.GB30866@calimero.vinschen.de>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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.


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/

