Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 C:/cygwin/home C:/cygwin/src D:/home/corinna D:/src 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/ 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 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.