From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: UNC with djgpp? Date: Thu, 23 Dec 1999 11:29:51 +0200 Organization: NetVision Israel Lines: 25 Message-ID: References: NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 945941287 26471 199.203.121.2 (23 Dec 1999 09:28:07 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 23 Dec 1999 09:28:07 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 22 Dec 1999, Alain Magloire wrote: > This is true on the Unix side, in QNX, which has a distributed model, > node could be access like this, for example getting a file on node161 > > less //161/etc/passwd > > It turned out to be a pain, since many Unix utilities will smash > the '//' to '/'. This (and similar) problems are *exactly* at the core of the reason for non-support of UNCs in DJGPP. If you have a program that doesn't take file names apart, but simply passes the UNCs unaltered to the DOS calls, then most of the DOS calls, at least on Windows, would not mind. The problem is that some functions and most GNU programs *do* take file names apart, and a small portion of DOS functions fail for UNCs (and the failures vary depending on the installed network client ;-). Imagine a situation where `stat' works, but `access' does not--it can be very confusing and cause subtle bugs. Getting all this straight is a royal pain, some of which I tried to describe earlier in this thread.