From 8e4379b264b582695ea7fc51b30e2cc968017dbf Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 28 Sep 2009 11:44:26 +0000 Subject: [PATCH] do not use errno when complaining out lack of a tty --- script.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script.c b/script.c index f36f9e311..0fae1c220 100644 --- a/script.c +++ b/script.c @@ -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"); -- 2.40.0