delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/12/27/11:08:13

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-workers-bounces using -f
Date: Thu, 27 Dec 2001 18:03:59 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
cc: Tim Van Holder <tim DOT van DOT holder AT pandora DOT be>, djgpp-workers AT delorie DOT com
Subject: Re: UNC examples
In-Reply-To: <10112271530.AA17030@clio.rice.edu>
Message-ID: <Pine.SUN.3.91.1011227175647.22136D-100000@is>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 27 Dec 2001, Charles Sandmann wrote:

> So, the glob routines can see the files, but ls can't stat them.

stat is one of the functions that depends on the drive being explicit 
after a call to _fixpath.  It needs that for the st_dev member.  You may 
wish to look at what _truename returns for a UNC as well.

In addition, I think we collapse multiple slashes into a single slash, 
so the leading double slash might be munged by that.  `ls' converts all 
backslashes to forward slashes (see ls-msdos.c in the ported sources), 
but you could modify ls-msdos.c to turn that off for UNCs, if making 
the double backslash survive saves the day (we only collapse forward 
slashes, not backslashes; see putpath.c).

- Raw text -


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