Page MenuHomeFreeBSD

ifconfig: fix Perrorc to use error parameter instead of errno
Needs ReviewPublic

Authored by chris.longros_gmail.com on Mar 26 2026, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 5, 2:41 PM
Unknown Object (File)
Sat, Sep 5, 12:17 PM
Unknown Object (File)
Fri, Sep 4, 9:49 PM
Unknown Object (File)
Fri, Sep 4, 9:40 PM
Unknown Object (File)
Fri, Sep 4, 9:38 PM
Unknown Object (File)
Fri, Sep 4, 8:08 AM
Unknown Object (File)
Thu, Sep 3, 9:37 AM
Unknown Object (File)
Wed, Sep 2, 3:23 PM
Subscribers

Details

Reviewers
melifaro
Summary

The switch statement checks errno instead of the error argument
passed by the caller, causing ENXIO and EPERM to be missed for
Netlink operations.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71730
Build 68613: arc lint + arc unit