Module Name: src Committed By: kardel Date: Tue Oct 1 10:52:53 UTC 2019
Modified Files: src/sbin/ifconfig: util.c Log Message: PR/54513 ifconfig exits on newly created carp interfaces downgrade from err(EXIT_FAILURE, ... ) to warn() if ioctl(SIOCGLIFADDR) fails. ifconfig now survives freshly created carp interfaces. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/sbin/ifconfig/util.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/util.c diff -u src/sbin/ifconfig/util.c:1.18 src/sbin/ifconfig/util.c:1.19 --- src/sbin/ifconfig/util.c:1.18 Fri Aug 16 10:33:17 2019 +++ src/sbin/ifconfig/util.c Tue Oct 1 10:52:53 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: util.c,v 1.18 2019/08/16 10:33:17 msaitoh Exp $ */ +/* $NetBSD: util.c,v 1.19 2019/10/01 10:52:53 kardel Exp $ */ /*- * Copyright (c) 2008 David Young. All rights reserved. @@ -27,7 +27,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: util.c,v 1.18 2019/08/16 10:33:17 msaitoh Exp $"); +__RCSID("$NetBSD: util.c,v 1.19 2019/10/01 10:52:53 kardel Exp $"); #endif /* not lint */ #include <ctype.h> @@ -276,7 +276,7 @@ print_link_addresses(prop_dictionary_t e iflr.prefixlen = sdl->sdl_alen * NBBY; if (prog_ioctl(s, SIOCGLIFADDR, &iflr) == -1) - err(EXIT_FAILURE, "%s: ioctl", __func__); + warn("%s: ioctl SIOCGLIFADDR", __func__); if (((iflr.flags & IFLR_ACTIVE) != 0) != print_active_only) continue;