X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.2 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
Message-ID: <4D49D2C8.503@t-online.de>
Date: Wed, 02 Feb 2011 22:55:20 +0100
From: Christian Franke <Christian.Franke@t-online.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.15) Gecko/20101027 SeaMonkey/2.0.10
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: directories named '...' (dotdotdot) do not work
References: <loom.20110201T203452-177@post.gmane.org> <20110202204556.GL2675@calimero.vinschen.de> <4D49C4EB.70204@redhat.com> <20110202212846.GN2675@calimero.vinschen.de> <20110202213205.GO2675@calimero.vinschen.de>
In-Reply-To: <20110202213205.GO2675@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:
>
> Btw., the "..." directory is not recognized at all by cmd.exe.  If you
> try to cd into it, it's simply ignored.  If you set the CWD to it
> and start cmd, cmd thinks it is in the parent directory.  This occurs
> on XP *and* W7.
>
>    

At least on XP cmd and others could not be run from a subdir below "...":

$ /bin/pwd
/tmp/...

$ cmd.exe /c cd
C:\cygwin\tmp

$ mkdir x

$ cd x

# /bin/pwd
/tmp/.../x

# cmd.exe /c cd
-bash: /cygdrive/c/WINDOWS/system32/cmd.exe: Not a directory


Same for "....", ".....", ....

Different path checking in win32api layer and ntdll layer ?

I would suggest to either quote or reject "..." in Cygwin.

Christian


--
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

