delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/24/18:01:45

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <ptsekov AT gmx DOT net>
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: <bnbr3c$44k$1@sea.gmane.org>
Message-ID: <Pine.CYG.4.58.0310242348530.1436@mordor>
References: <16281 DOT 6930 DOT 564000 DOT 468376 AT gargle DOT gargle DOT HOWL> <bnbr3c$44k$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0


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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019