1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

exec-invoke: user EBADF where appropriate

This commit is contained in:
Lennart Poettering 2024-07-17 15:06:48 +02:00
parent 2cd19499a0
commit e2d66781ee

View File

@ -744,7 +744,7 @@ static bool confirm_spawn_disabled(void) {
}
static int ask_for_confirmation(const ExecContext *context, const ExecParameters *params, const char *cmdline) {
int saved_stdout = -1, saved_stdin = -1, r;
int saved_stdout = -EBADF, saved_stdin = -EBADF, r;
_cleanup_free_ char *e = NULL;
char c;