zig
zig copied to clipboard
std.os: handle EPERM errno for bind
trafficstars
Handle the EPERM error in the os.bind function, which can happen when binding AF_NETLINK sockets as non-root on Linux.
Return error.AccessDenied instead of error.PermissionDenied, as this seems to be the more common return convention for EPERM in os.zig.
Not sure that I understand the build failure (non-determinism introduced?)
Not sure that I understand the build failure (non-determinism introduced?)
Error is unrelated to your PR as it appears during compilation of Zig itself (which does not use bind). See #14932.