From nobody Thu Jan 19 07:33:32 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NyDrY0rY6z2v6Pp for ; Thu, 19 Jan 2023 07:33:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NyDrX6W8jz424D for ; Thu, 19 Jan 2023 07:33:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674113612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=UqmdOhInYfkxVz8dNqb7XCOieIYTgpQ9R682nOy1CHY=; b=J+ivyOatWU3f8nw7yAtdJU9aCda9Q+U6eZ46xhWDIpcYN/ySVviDsHL8FFGulBOuE2f4um WUyYl2ybTPn6xHuPrHrirQuhoxwzf3ys/EemqjV5nmGXS0JJHY/uRQaVkv5z+KxEsw+3QN Y4iuGw3tBVBvad+z5jFt08l4tYs5zxME6M1gc/HqtL9S7rFaU53Oz9mZ56CypVZrx/lw7l 73rYVIgUdPTRZfq1CVvJBJzknvsPl2jZfWxeEqHB8sz2PmFUzd+qShziZa7o3T+2uBImyd UBnAQuKQRJJU1jxx5z12TObBNl7GGAAuZcTROBamaXbU3S+aNJvfmDtH/ZUS7A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674113612; a=rsa-sha256; cv=none; b=HP/mwCi1qnHVx5wbgjZ3mYHjL5Nz9yfgLmw8gtKc2dWqJMsHOBW/Rmd3IkzkKhX82h4Cm+ wU48fugPUBX4hcDuRftErOxjxXGQtzmC4CswYbiaKegYXrfN+ZoaHIiml9Zq28gsxmeqgL FApXSJ4/bCT5XHfqp/RhviEbQxy6HWQHm1BJTBP2D2d1Aaj8e9GjQWmk7+IlEq3ZrF5+7A ilD1sH+HfO5T0dzeqfB2r9okZQ4lzLO6A+3I6n5ykiWP2w8Sek0yYAR7SEnLAxwk4MWXYn qAO6FQYMufYFI+UT8oPel/2kIj1xfXSSOG9tsJ8080QkoxRXTMnW6fWXzr3SpQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NyDrX5Z4nzhmx for ; Thu, 19 Jan 2023 07:33:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30J7XWRj090096 for ; Thu, 19 Jan 2023 07:33:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30J7XWpu090095 for bugs@FreeBSD.org; Thu, 19 Jan 2023 07:33:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269042] ifconfig list fails since 2c24ad3377a6f58 / D37873 Date: Thu, 19 Jan 2023 07:33:32 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: bugs.fbsd@paepcke.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269042 Bug ID: 269042 Summary: ifconfig list fails since 2c24ad3377a6f58 / D37873 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: bugs.fbsd@paepcke.de Hello all,=20 https://cgit.freebsd.org/src/commit/sbin/ifconfig?id=3D2c24ad3377a6f584e484= 656db8390e4eb7cfc119 https://reviews.freebsd.org/D37873 Since this commit replaced the general silent fail for any kind of kdload error with a hard (exit) fail, except for ENOENT - ifconfig fails hard (exit) even in case the user has not even the permission to launch the syscall to kldload.=20 - /* - * Try to load the module. But ignore failures, because ifconfig c= an't - * infer the names of all drivers (eg mlx4en(4)). - */ - (void) kldload(ifkind); + /* Try to load the module. */ + if (kldload(ifkind) < 0) { + switch (errno) { + case ENOENT: + /* + * Ignore ENOENT, because ifconfig can't infer the + * names of all drivers (eg mlx4en(4)). + */ + break; + default: + err(1, "kldload(%s)", ifkind); + } + } Was this intentional or can we add nother exception for informal msg without (hard) exit here? Thank you!=20 Michael --=20 You are receiving this mail because: You are the assignee for the bug.=