]> diplodocus.org Git - nmh/commitdiff
Make sure stderr is directed to terminal, as well as stdin and
authorDavid Levine <levinedl@acm.org>
Thu, 29 Sep 2016 13:58:27 +0000 (09:58 -0400)
committerDavid Levine <levinedl@acm.org>
Thu, 29 Sep 2016 13:58:27 +0000 (09:58 -0400)
stdout, when deciding whether to check for nmh version update.

sbr/utils.c

index 783ac222fb0bada816f616145a3135d64bafe8c4..6fc6f53e2185764ecb84080f0b007f7d6d3a97e9 100644 (file)
@@ -373,6 +373,7 @@ nmh_init(const char *argv0, int read_context) {
            than they had last run, and notify them if so.  But only if
            they seem to be running an interactive program. */
         if (isatty (fileno (stdin))  &&  isatty (fileno (stdout))  &&
+            isatty (fileno (stderr))  &&
             strcmp (invo_name, "ap")  &&
             strcmp (invo_name, "dp")  &&
             strcmp (invo_name, "fmtdump")  &&