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 19, 4:38 PM
Unknown Object (File)
Sat, Sep 19, 4:38 PM
Unknown Object (File)
Fri, Sep 18, 11:21 PM
Unknown Object (File)
Wed, Sep 16, 7:08 AM
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
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