www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/06/15:02:28

From: Thomas Demmer <demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: fixpath problem in Novell drives.
Date: Wed, 06 May 1998 15:58:57 +0200
Organization: Lehrstuhl fuer Stroemungsmechanik
Lines: 40
Message-ID: <35506CA1.AFDD39DA@LSTM.Ruhr-UNI-Bochum.De>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980506140450 DOT 1846L-100000 AT is>
NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de
Mime-Version: 1.0
CC: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii wrote: 
> My hesitation stems primarily from the fact that DOS is probably handling
> these two files as residing on two different drives.  For example, a
> command such as "ren i:foo j:bar" (and the corresponding DOS system call)
> will probably fail, since DOS doesn't allow renaming across file systems.

I actually didn't try "REN", but a "MOVE" is refused by DOS, so DOS
itself
does recognize UNCs. 

> 
> However, if people think that this case is important enough to handle, I
> will do that.
I do think it is important in the long run, but I also believe that 
this requires a major rewrite of lots of file name handling code. 
I don't see any way to support drive letters _and_ UNCs in a foolproof 
way. One way would be to map something like "C:/AUTOEXEC.BAT" into
"\\localhost\c:\autoexec.bat", and drop drive letters for remote hosts 
completely, i.e. "i:\demmer\plan" becomes 
"\\brain1/usr/home/demmer/plan". 
Hence, if a UNC starts with "\\localhost" it is a local filesystem, 
and DOS interrupts apply, otherwise it is on a remote FS. 

But this requires tons of code to get rewritten. 


-- 
Ciao
Tom

*************************************************************
* Thomas Demmer                                             *
* Lehrstuhl fuer Stroemungsmechanik                         *
* Ruhr-Uni-Bochum                                           *
* Universitaetsstr. 150                                     *
* D-44780  Bochum                                           *
* Tel: +49 234 700 6434                                     *
* Fax: +49 234 709 4162                                     *
* http://www.lstm.ruhr-uni-bochum.de/~demmer                *
*************************************************************

- Raw text -


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