This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
[RFC] Is that error mapping correct?
- To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
- Subject: [RFC] Is that error mapping correct?
- From: Corinna Vinschen <corinna at vinschen dot de>
- Date: Tue, 02 May 2000 23:50:12 +0200
- Organization: Cygnus Solutions, a Red Hat Company
- Reply-To: cygdev <cygwin-developers at sourceware dot cygnus dot com>
Hi,
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
and
$ 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?
Corinna