do not use errno when complaining out lack of a tty

This commit is contained in:
Todd C. Miller
2009-09-28 11:44:26 +00:00
parent 0d9e1e7b6d
commit 8e4379b264

View File

@@ -231,7 +231,7 @@ script_setup()
int len;
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]))
log_error(USE_ERRNO, "Can't get pty");