Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Authenticated: #14308112
Date: Sat, 25 Oct 2003 00:04:14 +0200
From: Pavel Tsekov <ptsekov@gmx.net>
X-X-Sender: ptsekov@mordor
To: cygwin@cygwin.com
Subject: Re: 1.5.1: can't open files beginning with "..."
In-Reply-To: <bnbr3c$44k$1@sea.gmane.org>
Message-ID: <Pine.CYG.4.58.0310242348530.1436@mordor>
References: <16281.6930.564000.468376@gargle.gargle.HOWL> <bnbr3c$44k$1@sea.gmane.org>
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/

