Associate perms on stderr as opposed to stdin

This commit is contained in:
sin 2014-08-04 20:59:06 +01:00
parent cebba6f038
commit a068e158e4
1 changed files with 1 additions and 1 deletions

2
mesg.c
View File

@ -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)