diff src/utils.cc @ 178:8a750c9ad116

[project @ 1993-10-23 02:13:30 by jwe]
author jwe
date Sat, 23 Oct 1993 02:13:30 +0000
parents bff84a41f944
children 7a647cf4850c
line wrap: on
line diff
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -215,9 +215,10 @@
   static int curr_on = 0;
 
   int tty_fd = STDIN_FILENO;
-  if ((interactive || forced_interactive) && ! isatty (tty_fd))
+  if (! isatty (tty_fd))
     {
-      error ("stdin is not a tty!");
+      if (interactive || forced_interactive)
+	error ("stdin is not a tty!");
       return;
     }