diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-14 12:45:06 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-14 18:23:16 +0200 |
commit | 8ac43fee1a2890d62edfe29282f66780bc1b634f (patch) | |
tree | 2cb28d2f3df4780399a395ef615dc24ebc4ab4cf /src/libsystemd/sd-netlink | |
parent | c5974b33e7fa3b777e72181d0fc0d1d22fdab2cd (diff) |
tree-wide: generate EBADF when we get invalid fds
This is a follow-up to #907, and makes the same change for all our other
public APIs.
Diffstat (limited to 'src/libsystemd/sd-netlink')
-rw-r--r-- | src/libsystemd/sd-netlink/sd-netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-netlink/sd-netlink.c b/src/libsystemd/sd-netlink/sd-netlink.c index c413b1c266..d248869c8d 100644 --- a/src/libsystemd/sd-netlink/sd-netlink.c +++ b/src/libsystemd/sd-netlink/sd-netlink.c @@ -106,7 +106,7 @@ int sd_netlink_open_fd(sd_netlink **ret, int fd) { int r; assert_return(ret, -EINVAL); - assert_return(fd >= 0, -EINVAL); + assert_return(fd >= 0, -EBADF); r = sd_netlink_new(&rtnl); if (r < 0) |