X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Date: Tue, 22 Sep 2009 11:27:01 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: [1.7] symlink regression
Message-ID: <20090922092701.GQ20981@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <loom.20090921T170236-884@post.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <loom.20090921T170236-884@post.gmane.org>
User-Agent: Mutt/1.5.19 (2009-02-20)
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 Sep 21 15:06, Eric Blake wrote:
> In cygwin 1.5, symlink("a",d) correctly failed with EEXIST regardless of 
> whether d was "dir", "dir/", or "dir/.".  But in 1.7, it is failing with ENOENT 
> for just "dir/", and failing a gnulib test as a result.  STC:
> 
> $ mkdir dir
> $ ln -sT nowhere dir/.
> ln: creating symbolic link `dir/.': File exists
> $ ln -sT nowhere dir/ 
> ln: creating symbolic link `dir/': No such file or directory

I reworked symlink's error handling so that in my testing I now get
the exact same error messages as on Linux:

  $ rm wqwqwq
  $ ln -sT nowhere wqwqwq/
  ln: creating symbolic link `wqwqwq/': No such file or directory
  $ ln -sT nowhere wqwqwq/.
  ln: creating symbolic link `wqwqwq/.': No such file or directory
  $ ln -sT nowhere wqwqwq
  $ ln -sT nowhere wqwqwq/
  ln: creating symbolic link `wqwqwq/': File exists
  $ ln -sT nowhere wqwqwq/.
  ln: creating symbolic link `wqwqwq/.': No such file or directory
  $ touch nowhere
  $ ln -sT nowhere wqwqwq
  ln: creating symbolic link `wqwqwq': File exists
  $ ln -sT nowhere wqwqwq/
  ln: creating symbolic link `wqwqwq/': File exists
  $ ln -sT nowhere wqwqwq/.
  ln: creating symbolic link `wqwqwq/.': Not a directory
  $ rm nowhere
  $ mkdir nowhere
  $ ln -sT nowhere wqwqwq
  ln: creating symbolic link `wqwqwq': File exists
  $ ln -sT nowhere wqwqwq/.
  ln: creating symbolic link `wqwqwq/.': File exists
  $ ln -sT nowhere wqwqwq/
  ln: creating symbolic link `wqwqwq/': File exists

Can you please check against your testsuite?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

