summaryrefslogtreecommitdiffstats
path: root/src/coredump
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-12-20 19:01:54 +0100
committerGitHub <noreply@github.com>2022-12-20 19:01:54 +0100
commit5948d654fa0fe6122f09e0f3df3ea340d4b0a87e (patch)
treed70de8b2220d30e0d28002fc6b070a291ede967e /src/coredump
parentMerge branch 'systemd-security/coredump-capabilities' (diff)
parenttree-wide: use -EBADF more (diff)
downloadsystemd-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.c2
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");