[hackers] [ubase] Associate perms on stderr as opposed to stdin || sin

From: <git_AT_suckless.org>
Date: Mon, 04 Aug 2014 22:00:59 +0200

commit a068e158e43fe881ed40db2707cbe201117ecd04
Author: sin <sin_AT_2f30.org>
Date: Mon Aug 4 20:59:06 2014 +0100

    Associate perms on stderr as opposed to stdin

diff --git a/mesg.c b/mesg.c
index 3196e96..fb94958 100644
--- a/mesg.c
+++ b/mesg.c
_AT_@ -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
");
 
         if (fstat(STDIN_FILENO, &sb) < 0)
Received on Mon Aug 04 2014 - 22:00:59 CEST

This archive was generated by hypermail 2.3.0 : Mon Aug 04 2014 - 22:12:08 CEST