From: David Levine Date: Thu, 29 Sep 2016 13:58:27 +0000 (-0400) Subject: Make sure stderr is directed to terminal, as well as stdin and X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/6648309573e82f1e4c6f441dcd616b59b8eaad71?ds=sidebyside;hp=-c Make sure stderr is directed to terminal, as well as stdin and stdout, when deciding whether to check for nmh version update. --- 6648309573e82f1e4c6f441dcd616b59b8eaad71 diff --git a/sbr/utils.c b/sbr/utils.c index 783ac222..6fc6f53e 100644 --- a/sbr/utils.c +++ b/sbr/utils.c @@ -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") &&