This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/198] if_indextoname() should return errno ENXIO when NULL
- From: "dlstevens at us dot ibm dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 2 Jun 2004 21:37:56 -0000
- Subject: [Bug libc/198] if_indextoname() should return errno ENXIO when NULL
- References: <20040602212901.198.dlstevens@us.ibm.com>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From dlstevens at us dot ibm dot com 2004-06-02 21:37 -------
Created an attachment (id=101)
--> (http://sources.redhat.com/bugzilla/attachment.cgi?id=101&action=view)
proposed fix
I believe the following patch fixes the bug for Linux and non-Linux systems
that
return ENODEV as errno from SIOCGIFNAME. It also fixes the non-SIOCGIFNAME
path where the search results in no interface, but currently does not set errno
at all (should be ENXIO there, too).
--
http://sources.redhat.com/bugzilla/show_bug.cgi?id=198
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.