]> granicus.if.org Git - sudo/commitdiff
do not use errno when complaining out lack of a tty
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Sep 2009 11:44:26 +0000 (11:44 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 28 Sep 2009 11:44:26 +0000 (11:44 +0000)
script.c

index f36f9e311f7d9e3145d68e365fbbaf5a7f515708..0fae1c220c02a87630e84f78be6adc55fb535d10 100644 (file)
--- 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");