delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Tue, 22 Sep 2009 11:27:01 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: [1.7] symlink regression |
Message-ID: | <20090922092701.GQ20981@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20090921T170236-884 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20090921T170236-884@post.gmane.org> |
User-Agent: | Mutt/1.5.19 (2009-02-20) |
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 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |