From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 98FC4138B0A for ; Mon, 24 Oct 2016 00:04:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5A92BE080A; Mon, 24 Oct 2016 00:04:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 436C8E080A for ; Mon, 24 Oct 2016 00:04:25 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 281CB34164D for ; Mon, 24 Oct 2016 00:04:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EAEAC249B for ; Mon, 24 Oct 2016 00:04:20 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1477267456.c9fcba63eba9760cdbd5effc9a63394a3fa9d3ae.robbat2@OpenRC> Subject: [gentoo-commits] proj/netifrc:master commit in: net/ X-VCS-Repository: proj/netifrc X-VCS-Files: net/iproute2.sh X-VCS-Directories: net/ X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: c9fcba63eba9760cdbd5effc9a63394a3fa9d3ae X-VCS-Branch: master Date: Mon, 24 Oct 2016 00:04:20 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: af9a4106-ca68-4196-8649-259db47990e6 X-Archives-Hash: 004f88e69b31fd5e2d6ca213e64346a7 commit: c9fcba63eba9760cdbd5effc9a63394a3fa9d3ae Author: Robin H. Johnson gentoo org> AuthorDate: Mon Oct 24 00:04:16 2016 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Mon Oct 24 00:04:16 2016 +0000 URL: https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=c9fcba63 iproute2: error-check the error-behavior input. Signed-off-by: Robin H. Johnson gentoo.org> net/iproute2.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/iproute2.sh b/net/iproute2.sh index b6fd847..408e293 100644 --- a/net/iproute2.sh +++ b/net/iproute2.sh @@ -198,6 +198,7 @@ _add_address() info) msgfunc=einfo rc=0 ;; warn) msgfunc=ewarn rc=0 ;; error|fatal) msgfunc=eerror rc=1;; + *) msgfunc=eerror rc=1 ; eerror "Unknown error behavior: $eh_behavior" ;; esac eval $msgfunc "Address ${address}${netmask:+/}${netmask} already existed!" eval $msgfunc \"$(ip addr show to "${address}/${family_maxnetmask}" dev "${IFACE}" 2>&1)\" @@ -269,6 +270,7 @@ _add_route() info) msgfunc=einfo rc=0 ;; warn) msgfunc=ewarn rc=0 ;; error|fatal) msgfunc=eerror rc=1;; + *) msgfunc=eerror rc=1 ; eerror "Unknown error behavior: $eh_behavior" ;; esac eval $msgfunc "Route '$cmd' already existed." eval $msgfunc \"$(ip $family route show $cmd dev "${IFACE}" 2>&1)\"