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 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: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-02-20) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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