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 X-Sender: eliz AT is To: Charles Sandmann cc: Tim Van Holder , djgpp-workers AT delorie DOT com Subject: Re: UNC examples In-Reply-To: <10112271530.AA17030@clio.rice.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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).