This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [1.7] symlink regression
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 22 Sep 2009 11:27:01 +0200
- Subject: Re: [1.7] symlink regression
- References: <loom.20090921T170236-884@post.gmane.org>
- Reply-to: 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