commit a068e158e43fe881ed40db2707cbe201117ecd04 parent cebba6f0386027a546f2403ebf2d25346280c9a5 Author: sin <sin@2f30.org> Date: Mon, 4 Aug 2014 20:59:06 +0100 Associate perms on stderr as opposed to stdin Diffstat:
M | mesg.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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)