delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/09/29/03:31:35

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 29 Sep 2009 09:31:11 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ls / does not show /c with cygdrive prefix=/
Message-ID: <20090929073111.GD15296@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <1254099878 DOT 2604 DOT 21 DOT camel AT mward-laptop> <20090928113241 DOT GO30851 AT calimero DOT vinschen DOT de> <1254179987 DOT 2690 DOT 1 DOT camel AT mward-laptop> <20090929070508 DOT GB15296 AT calimero DOT vinschen DOT de> <1254208139 DOT 2743 DOT 19 DOT camel AT mward-laptop DOT ops DOT acx>
MIME-Version: 1.0
In-Reply-To: <1254208139.2743.19.camel@mward-laptop.ops.acx>
User-Agent: Mutt/1.5.19 (2009-02-20)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

On Sep 29 17:08, Mikel Ward wrote:
> Corinna Vinschen wrote:
> > > Is there any way to disable this special case to get the behavior I want
> > > with prefix=/?
> > 
> > No, sorry.
> 
> OK.
> 
> I don't understand why, but if you don't have time to explain, that's
> fine.

I don't know what you would like to read.  It's part of the way the
Cygwin DLL handles that stuff.  To enumerate the available directories,
the directory opened with opendir() must have been recognized as the
cygdrive directory.  If that happens, *only* drives are enumerated
since the cygdrive directory is a virtual directory anyway.
This method can't work on / since then you would have a broken
filesystem tree.  That's why we frown on / as cygdrive directory (at
least I do, but apparently nobody cares).

> But are there any other possible problems with having prefix=/ that I
> should be aware of?

I didn't look into this for some time.  Off the top of my head I don't
know.  Looks like many people are using it anyway.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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

- Raw text -


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