From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10480 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] fix if_indextoname error case Date: Fri, 16 Sep 2016 18:03:46 -0400 Message-ID: <20160916220346.GR15995@brightrain.aerifal.cx> References: <20160915152731.4897-1-dsabogalcc@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1474063443 17049 195.159.176.226 (16 Sep 2016 22:04:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2016 22:04:03 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10493-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 17 00:04:00 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bl1Ek-0003zP-NP for gllmg-musl@m.gmane.org; Sat, 17 Sep 2016 00:03:58 +0200 Original-Received: (qmail 5528 invoked by uid 550); 16 Sep 2016 22:03:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 5507 invoked from network); 16 Sep 2016 22:03:58 -0000 Content-Disposition: inline In-Reply-To: <20160915152731.4897-1-dsabogalcc@gmail.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10480 Archived-At: On Thu, Sep 15, 2016 at 11:27:30AM -0400, Daniel Sabogal wrote: > 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 | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) Applied. Rich