From 6648309573e82f1e4c6f441dcd616b59b8eaad71 Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 29 Sep 2016 09:58:27 -0400 Subject: [PATCH] Make sure stderr is directed to terminal, as well as stdin and stdout, when deciding whether to check for nmh version update. --- sbr/utils.c | 1 + 1 file changed, 1 insertion(+) 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") && -- 2.56.0