diff options
Diffstat (limited to 'src/core/exec-invoke.c')
-rw-r--r-- | src/core/exec-invoke.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/exec-invoke.c b/src/core/exec-invoke.c index 6bef4e7675..a867480300 100644 --- a/src/core/exec-invoke.c +++ b/src/core/exec-invoke.c @@ -354,7 +354,7 @@ static int setup_input( return -errno; /* Try to make this the controlling tty, if it is a tty */ - if (isatty(STDIN_FILENO)) + if (isatty_safe(STDIN_FILENO)) (void) ioctl(STDIN_FILENO, TIOCSCTTY, context->std_input == EXEC_INPUT_TTY_FORCE); return STDIN_FILENO; |