Module Name: src Committed By: christos Date: Sat Mar 17 02:25:08 UTC 2012
Modified Files: src/sbin/ifconfig: af_inetany.c Log Message: PR/43141: Tobias Nygren: Print an error on unknown interfaces. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sbin/ifconfig/af_inetany.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/ifconfig/af_inetany.c diff -u src/sbin/ifconfig/af_inetany.c:1.14 src/sbin/ifconfig/af_inetany.c:1.15 --- src/sbin/ifconfig/af_inetany.c:1.14 Tue May 24 07:38:56 2011 +++ src/sbin/ifconfig/af_inetany.c Fri Mar 16 22:25:08 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: af_inetany.c,v 1.14 2011/05/24 11:38:56 joerg Exp $ */ +/* $NetBSD: af_inetany.c,v 1.15 2012/03/17 02:25:08 christos Exp $ */ /*- * Copyright (c) 2008 David Young. All rights reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: af_inetany.c,v 1.14 2011/05/24 11:38:56 joerg Exp $"); +__RCSID("$NetBSD: af_inetany.c,v 1.15 2012/03/17 02:25:08 christos Exp $"); #endif /* not lint */ #include <sys/param.h> @@ -81,7 +81,7 @@ commit_address(prop_dictionary_t env, pr err(EXIT_FAILURE, "%s: getsock", __func__); if ((ifname = getifinfo(env, oenv, &flags)) == NULL) - return; + err(EXIT_FAILURE, "%s: getifinfo", __func__); strlcpy(param->name[0].buf, ifname, param->name[0].buflen); strlcpy(param->name[1].buf, ifname, param->name[1].buflen);