delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/04/30/12:54:24

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
Date: Mon, 30 Apr 2001 12:55:05 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: PATCH [was Re: difficult problem with symbolic link handling]
Message-ID: <20010430125505.A30702@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com
References: <20010428130748 DOT A20706 AT redhat DOT com> <20010430001845 DOT A24200 AT cygbert DOT vinschen DOT de> <20010429201700 DOT A24130 AT redhat DOT com> <20010430115525 DOT E24200 AT cygbert DOT vinschen DOT de> <20010430142443 DOT H24200 AT cygbert DOT vinschen DOT de>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <20010430142443.H24200@cygbert.vinschen.de>; from vinschen@redhat.com on Mon, Apr 30, 2001 at 02:24:43PM +0200

On Mon, Apr 30, 2001 at 02:24:43PM +0200, Corinna Vinschen wrote:
>On Mon, Apr 30, 2001 at 11:55:25AM +0200, Corinna Vinschen wrote:
>> Further behaviour is related to "check_case=relaxed".
>> I think that's actually the same bug but just for
>> clearness I send both problems:
>> 
>> - TAB-completion doesn't work correctly. Example
>> 	$ cd src/openssh/<TAB>
>>   shows the contents of src/, not of src/openssh/.
>> 
>> - chdir doesn't work correctly.
>>   Example bash:
>> 	$ cd src/openssh/src
>> 	$ pwd
>> 	/home/corinna/src/openssh/src
>> 	$ ls
>> 	<Output for ~/src, not for ~/src/openssh/src>
>>   Example tcsh:
>>   	$ cd src/openssh/src
>> 	$ pwd
>> 	/src
>> 
>> 	$ cd src
>> 	$ cd openssh
>> 	$ cd src
>> 	$ pwd
>> 	/src/openssh/src
>> 	$ cd ..
>> 	$ pwd
>> 	/src
>
>That problem can be solved by the following patch:
>
>	* path.cc (path_conv::check): Update tail to actual pinched off
>	path tail.
>
>Index: path.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/path.cc,v
>retrieving revision 1.130
>diff -u -p -r1.130 path.cc
>--- path.cc     2001/04/30 01:46:31     1.130
>+++ path.cc     2001/04/30 12:22:10
>@@ -559,7 +559,7 @@ path_conv::check (const char *src, unsig
>       else
>        {
>          *headptr++ = '/';
>-	  strcpy (headptr, tail);
>+	  strcpy (headptr, ++tail);
>        }
> 
>       src = tmp_buf;
>

Thanks.  This was one of a couple of problems.

One large problem was that I'd already fixed some things in my local sandbox
and neglected to check things in.

I've checked in a change which rectifies the problems that you reported, for
me at least.

There are still some relative path issues from Kazuhiro that I'm mulling
over, though.

cgf

- Raw text -


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