Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 X-Authenticated: #14308112 Date: Sat, 25 Oct 2003 00:04:14 +0200 From: Pavel Tsekov X-X-Sender: ptsekov AT mordor To: cygwin AT cygwin DOT com Subject: Re: 1.5.1: can't open files beginning with "..." In-Reply-To: Message-ID: References: <16281 DOT 6930 DOT 564000 DOT 468376 AT gargle DOT gargle DOT HOWL> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Fri, 24 Oct 2003, Rolf Campbell wrote: > To make things even more interesting, it thinks that anything starting > with '...' is a character device? > > /home/rcampbell> ll .............. > crw-rw-rw- 1 rcampbel 0, 0 Oct 24 14:28 .............. > > /home/rcampbell> touch ... > touch: creating `...': No such device or address This does not work on Windows. Basically paths in windows cannot end in row of dots. The dots are silently ignored. > Chris Moore wrote: > > I have a file on my PC called "...foo.txt". This does work, but Cygwin's path handling code understands only ".." and "." . If it get three dots in a raw and they appear before the last '/' char, Cygwin returns ENOENT. I looked in the code 2 months ago so I may miss some of the details - please, correct me if I am wrong. I found this in august and changed the code (normalize_posix_path) to allow path components starting with multiple dots but I havent sent the pathc since i had some doubts on how to implement this properly for UNC paths - the path handling code is the same. If someone is interested to look at it and discuss I will be happy to send it. Pavel -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/