From a068e158e43fe881ed40db2707cbe201117ecd04 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 4 Aug 2014 20:59:06 +0100 Subject: [PATCH] Associate perms on stderr as opposed to stdin --- mesg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesg.c b/mesg.c index 3196e96..fb94958 100644 --- a/mesg.c +++ b/mesg.c @@ -28,7 +28,7 @@ main(int argc, char *argv[]) if (argc > 1) usage(); - if (isatty(STDIN_FILENO) == 0) + if (isatty(STDERR_FILENO) == 0) eprintf("stdin: not a tty\n"); if (fstat(STDIN_FILENO, &sb) < 0)