delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/12/13/05:49:04

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: <alexbodn AT 012 DOT net DOT il>
To: djgpp AT delorie DOT com, djgpp AT delorie DOT com
Subject: Re: Re: network files unc under windows xp
Date: Mon, 13 Dec 2004 12:48:55 +0200
MIME-Version: 1.0
Message-Id: <20041213104445.MRNE10597.fep11@[212.117.129.234]>
Reply-To: djgpp AT delorie DOT com

> 
> From: Eli Zaretskii <eliz AT gnu DOT org>
> Date: 2004/12/12 à PM 11:38:52 GMT+02:00
> To: djgpp AT delorie DOT com
> Subject: Re: network files unc under windows xp

> 
> Sorry, but you are wrong: Windows understands / and \ alike, and it
> understands "//servername/" exactly as "\\servername\".
> 
> The problem is elsewhere: DJGPP simply does not support UNC-style file
> names.  It might work for you in some simple cases, but will
> mysteriously fail in others.  The reason for that is that some
> file-related functions need to know the drive letter of the volume
> where the file resides, and that is just too painful to compute for a
> UNC-style file name (and might even not exist in some configurations).
>

dear eli,

i can't argue with your knowledge and experience, but those small and trivial changes made the whole difference for me (under netware and nt file servers), and hopefully may help others too.

of course, i would be interested in the real cause of this problem, so that it might get solved.

in my opinion, the file operation should rather fail than deliberately prepend a drive letter in such inappropriate situation. here we might act on a wrong file.

in a total failure condition, net use may be called to overcome this problem. in this case, the used drive should be saved for later net use /delete on file close, if impossible to do it right after file opening.

by the way, i have done the same change to fixpath(), with expected results.

best regards,

alex


- Raw text -


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