From: Thomas Demmer 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: NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit CC: Eli Zaretskii To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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 * *************************************************************