Mail Archives: djgpp-workers/2001/12/27/10:35:33
Hello.
Eli Zaretskii wrote:
> It's not clear to me how to fix this. We should either augment those
> library functions which tinker with file names to know about UNCs, or
> write code to map between a UNC and a drive letter. The latter is
> safer, but since the mapping can be changed behind our back (the user
> can run "net use" from another DOS box), we cannot cache the mapping,
> and will need to compute the drive letter each time, which will slow
> down file-related system calls (especially since network-related calls
> are slow).
Sometime ago I wrote an FSEXT that did behind-the-scenes mapping and
unmapping of UNCs to drive letters. IIRC it was written against DJGPP
2.02. It would benefit with being updated to DJGPP 2.03 or DJGPP CVS,
because that would help fix some of the bugs in it. It's here:
http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#unc_fsx
Of course, it suffers from the problems Eli mentions. But perhaps the code
would be a helpful starting point.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -