Page MenuHomeFreeBSD

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

Authored by longros on Mar 26 2026, 8:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Oct 9, 11:33 PM
Unknown Object (File)
Thu, Oct 8, 11:38 PM
Unknown Object (File)
Mon, Oct 5, 11:45 PM
Unknown Object (File)
Mon, Oct 5, 5:23 AM
Unknown Object (File)
Thu, Oct 1, 8:28 AM
Unknown Object (File)
Mon, Sep 28, 3:30 AM
Unknown Object (File)
Sat, Sep 19, 4:38 PM
Unknown Object (File)
Sat, Sep 19, 4:38 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