git: c4673251c979 - stable/14 - network.subr: MFC: correct return code in case of bad call to ifisup()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Jul 2025 15:46:17 UTC
The branch stable/14 has been updated by eugen:
URL: https://cgit.FreeBSD.org/src/commit/?id=c4673251c9793353d52ed2e56b54fd6557466ac1
commit c4673251c9793353d52ed2e56b54fd6557466ac1
Author: Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2025-07-01 14:33:19 +0000
Commit: Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2025-07-13 15:45:41 +0000
network.subr: MFC: correct return code in case of bad call to ifisup()
This is rather cosmetic correction.
PR: 287872
(cherry picked from commit 24e8ed535ff673b9ea751c3d3b2a68ef0a29b0e2)
---
libexec/rc/network.subr | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/rc/network.subr b/libexec/rc/network.subr
index 2113a3f66f0f..5e4f2c1f39a0 100644
--- a/libexec/rc/network.subr
+++ b/libexec/rc/network.subr
@@ -661,7 +661,7 @@ ifisup()
{
local _if
- [ -z "$1" ] && return 1
+ [ -z "$1" ] && return 2
_if="$1"
set -- $(${IFCONFIG_CMD} -n ${_if} 2>/dev/null)