diff options
author | Lennart Poettering <lennart@poettering.net> | 2022-12-20 19:01:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-20 19:01:54 +0100 |
commit | 5948d654fa0fe6122f09e0f3df3ea340d4b0a87e (patch) | |
tree | d70de8b2220d30e0d28002fc6b070a291ede967e /src/coredump | |
parent | Merge branch 'systemd-security/coredump-capabilities' (diff) | |
parent | tree-wide: use -EBADF more (diff) | |
download | systemd-5948d654fa0fe6122f09e0f3df3ea340d4b0a87e.tar.xz systemd-5948d654fa0fe6122f09e0f3df3ea340d4b0a87e.zip |
Merge pull request #25789 from yuwata/EBADF
tree-wide: use -EBADF more
Diffstat (limited to 'src/coredump')
-rw-r--r-- | src/coredump/coredump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index c8c8158eef..192dc4c654 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -1463,7 +1463,7 @@ static int process_kernel(int argc, char* argv[]) { /* When we're invoked by the kernel, stdout/stderr are closed which is dangerous because the fds * could get reallocated. To avoid hard to debug issues, let's instead bind stdout/stderr to * /dev/null. */ - r = rearrange_stdio(STDIN_FILENO, -1, -1); + r = rearrange_stdio(STDIN_FILENO, -EBADF, -EBADF); if (r < 0) return log_error_errno(r, "Failed to connect stdout/stderr to /dev/null: %m"); |