fix if_indextoname error case
authorDaniel Sabogal <dsabogalcc@gmail.com>
Thu, 15 Sep 2016 15:27:30 +0000 (11:27 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 16 Sep 2016 22:03:06 +0000 (18:03 -0400)
commit32055d52ca43d867d6dbb763dc5213a8d3536a23
treec9a193f066851b22442d87a037926fbcd838d57e
parent3848a99f65952a77c03bbd905cae988f37f13ea6
fix if_indextoname error case

posix requires errno to be set to ENXIO if the interface does not exist.
linux returns ENODEV instead so we handle this.
src/network/if_indextoname.c