mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
sd-login: reject invalid pidfd with -EBADF consistently
We got it mostly right except for one function, fix it.
This commit is contained in:
@@ -273,7 +273,7 @@ _public_ int sd_pidfd_get_owner_uid(int pidfd, uid_t *ret_uid) {
|
||||
pid_t pid;
|
||||
int r;
|
||||
|
||||
assert_return(pidfd >= 0, -EINVAL);
|
||||
assert_return(pidfd >= 0, -EBADF);
|
||||
|
||||
r = pidfd_get_pid(pidfd, &pid);
|
||||
if (r < 0)
|
||||
|
||||
Reference in New Issue
Block a user