Skip to content

Commit

Permalink
Revert "core/exec-invoke: reopen OpenFile= fds with O_NOCTTY"
Browse files Browse the repository at this point in the history
This reverts commit 9ae9345.
  • Loading branch information
bluca committed Jul 6, 2024
1 parent 41c0c15 commit 6c73930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/exec-invoke.c
Original file line number Diff line number Diff line change
Expand Up @@ -3721,7 +3721,7 @@ static int get_open_file_fd(const ExecContext *c, const ExecParameters *p, const
else if (FLAGS_SET(of->flags, OPENFILE_TRUNCATE))
flags |= O_TRUNC;

fd = fd_reopen(ofd, flags|O_NOCTTY|O_CLOEXEC);
fd = fd_reopen(ofd, flags | O_CLOEXEC);
if (fd < 0)
return log_exec_error_errno(c, p, fd, "Failed to open file %s: %m", of->path);

Expand Down

0 comments on commit 6c73930

Please sign in to comment.