This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [1.7] symlink regression


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]