[RFC] Is that error mapping correct?

Corinna Vinschen corinna@vinschen.de
Tue May 2 15:00:00 GMT 2000


I wonder if the error mapping is correct in case of ERROR_BAD_NETPATH.
errno.cc maps that error to ENXIO ("No such device or address")
while I'm sure the correct mapping would be ENOENT ("No such file
or directory") because

	$ cat /foo/bar/baz
	cat: /foo/bar/baz: No such file or directory
	$ cat //f/bar/baz
	cat: //f/bar/baz: No such file or directory

looks fine while

	$ cat //foo/bar/baz
	cat: //foo/bar/baz: No such device or address

seems somewhat strange. Have I missed something, perhaps?


More information about the Cygwin-developers mailing list