mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-04 08:15:15 +00:00
do not use errno when complaining out lack of a tty
This commit is contained in:
2
script.c
2
script.c
@@ -231,7 +231,7 @@ script_setup()
|
|||||||
int len;
|
int len;
|
||||||
|
|
||||||
if (!isatty(STDIN_FILENO))
|
if (!isatty(STDIN_FILENO))
|
||||||
log_error(USE_ERRNO, "Standard input is not a tty");
|
log_error(0, "Standard input is not a tty");
|
||||||
|
|
||||||
if (!get_pty(&script_fds[SFD_MASTER], &script_fds[SFD_SLAVE]))
|
if (!get_pty(&script_fds[SFD_MASTER], &script_fds[SFD_SLAVE]))
|
||||||
log_error(USE_ERRNO, "Can't get pty");
|
log_error(USE_ERRNO, "Can't get pty");
|
||||||
|
Reference in New Issue
Block a user