changeset 178:8a750c9ad116

[project @ 1993-10-23 02:13:30 by jwe]
author jwe
date Sat, 23 Oct 1993 02:13:30 +0000
parents 198c555813f0
children a29cd8ae572e
files src/utils.cc
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
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;
     }