Mail Archives: djgpp/1999/08/24/23:35:24
"Campbell, Rolf [SKY:1U32:EXCH]" <cp1v45 AT NortelNetworks DOT com> writes:
> Open Notepad. Try to open "\\foo". You will get a quick responce that it
> can't be opened.
> Try to open "C:\\foo" and it will wait for at least 5 seconds before telling
> you that it can't be opened.
Maybe you don't have "Client for Microsoft Networks" in network
settings and filenames which look like UNC are rejected immediately?
For me, opening \\foo and c:\/foo in Notepad has the same delay,
opening c:\\foo returns immediately with error "this filename is not
valid". Perhaps there is some code for rejecting invalid filenames
without passing them to the system, but not very good. Otherwise,
delay is (almost) the same.
E:\TEMP>redir -t ls \\foo
d:/comp/djgpp/bin/ls: //foo: No such file or directory (ENOENT)
Elapsed time: 8.630 seconds
E:\TEMP>redir -t ls c:\\foo
d:/comp/djgpp/bin/ls: c://foo: No such file or directory (ENOENT)
Elapsed time: 8.620 seconds
On other computer, connected to Ethernet, delay was about 5 seconds.
--
Michael Bukin
- Raw text -