delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/19/20:34:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Thu, 19 Sep 2002 20:34:02 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Shankar Unni <shankar AT cotagesoft DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: df --local
In-Reply-To: <3D8A516F.6060409@cotagesoft.com>
Message-ID: <Pine.GSO.4.44.0209192025440.15469-100000@slinky.cs.nyu.edu>
MIME-Version: 1.0

On Thu, 19 Sep 2002, Shankar Unni wrote:

> Igor Pechtchanski wrote:
> > -# ifdef __CYGWIN__
> > -# define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') == 0)
> > -# else
> >  # define ME_REMOTE(fs_name, fs_type) (strchr (fs_name, ':') != 0)
> > -# endif
>
> You're sure it's not possible to end up with a local path without a ":"
> (e.g. just \windows\system32, etc.) in the mount table? I'm not sure
> what this would mean, but as long as it's not possible to get such an
> entry in using the usual API, this check should be OK.

You are quite correct.  It is possible to get entries with no drive letter
into the mount table, and they will even work (sort of).  However, ISTR a
discussion a month or so ago about the woes of doing this sort of thing,
e.g., switching to another drive and trying to access such mounts, so I
suppose we should just consider these mounts invalid, anyway...

BTW, I noticed that I accidentally reversed the patch.  Sorry.  However,
patch should be smart enough to detect this.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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