mirror of git://git.suckless.org/ubase
Associate perms on stderr as opposed to stdin
This commit is contained in:
parent
cebba6f038
commit
a068e158e4
2
mesg.c
2
mesg.c
|
@ -28,7 +28,7 @@ main(int argc, char *argv[])
|
||||||
if (argc > 1)
|
if (argc > 1)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if (isatty(STDIN_FILENO) == 0)
|
if (isatty(STDERR_FILENO) == 0)
|
||||||
eprintf("stdin: not a tty\n");
|
eprintf("stdin: not a tty\n");
|
||||||
|
|
||||||
if (fstat(STDIN_FILENO, &sb) < 0)
|
if (fstat(STDIN_FILENO, &sb) < 0)
|
||||||
|
|
Loading…
Reference in New Issue