delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/04/30/05:56:14

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 11:55:25 +0200
From: Corinna Vinschen <vinschen AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com
Subject: Re: difficult problem with symbolic link handling
Message-ID: <20010430115525.E24200@cygbert.vinschen.de>
Reply-To: cygdev <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>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010429201700.A24130@redhat.com>; from cgf@redhat.com on Sun, Apr 29, 2001 at 08:17:00PM -0400

On Sun, Apr 29, 2001 at 08:17:00PM -0400, Christopher Faylor wrote:
> On Mon, Apr 30, 2001 at 12:18:45AM +0200, Corinna Vinschen wrote:
> >Somehow your latest changes to path.cc break check_case.
> >
> >Try to start a shell with CYGWIN=... check_case=adjust
> >
> >and call `ls -ld .'
> >
> >Result:
> >ls: .: No such file or directory.
> 
> Works fine for me, but that is somewhat besides the point.
> 
> I was asking for feedback on whether this was a worthwhile path to follow
> not whether my particular implementation had bugs or not.  I actually
> marked the previous revision of path.cc so that I could revert to the
> old way of doing things if people had problems.

From your description I think it is actually a worthwhile path to
go. Even if it slows down Cygwin since correctness is more important
than speed.

> I assume that since you didn't object to the words that you've moved on
> to debugging the implementation.

Actually I have to debug my own changes to the security stuff.
Unfortunately your changes break the chance to test them in the
current CVS version. For that reason I send you another bug
report now. If I can fix them, I will send you patches, too,
of course.

The bug report:

Real directories:

	C:/cygwin       <root>
	C:/cygwin/home  <empty, just mount point>
	C:/cygwin/src   <empty, just mount point>
	D:/home/corinna	<real home directory>
	D:/src		<real source directory>

Mount points:

	mount -s -b C:/cygwin /
	mount -s -b D:/home /home
	mount -s -b D:/src /src

Symlinks:

	ln -s /src /home/corinna/src

If check_case is relaxed that symlink is printed as symlink,
as a normal file otherwise:

HOME=/home/corinna bash --login
$ CYGWIN="$CYGWIN check_case=relaxed" ls -l src
lrwxrwxrwx   1 corinna  root           15 Mar 19 14:02 src -> /src
$ CYGWIN="$CYGWIN check_case=adjust" ls -l src
-rwxrwxrwx   1 corinna  root           15 Mar 19 14:02 src

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

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

- Raw text -


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