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
F167854115: D56099.diff
Tue, Aug 25, 12:49 AM
F167847637: D56099.id.diff
Mon, Aug 24, 11:41 PM
Unknown Object (File)
Sun, Aug 23, 12:47 AM
Unknown Object (File)
Sat, Aug 22, 10:53 PM
Unknown Object (File)
Fri, Aug 21, 9:47 PM
Unknown Object (File)
Sun, Aug 16, 8:27 AM
Unknown Object (File)
Sat, Aug 15, 4:39 AM
Unknown Object (File)
Fri, Aug 14, 4:30 AM
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