projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BSD 3 development
[unix-history]
/
usr
/
src
/
cmd
/
mesg.c
diff --git
a/usr/src/cmd/mesg.c
b/usr/src/cmd/mesg.c
old mode 100644
(file)
new mode 100755
(executable)
index
3d55a36
..
77e8f99
--- a/
usr/src/cmd/mesg.c
+++ b/
usr/src/cmd/mesg.c
@@
-21,6
+21,8
@@
char *argv[];
{
int r=0;
tty = ttyname(2);
+ if (tty == 0)
+ exit(13);
if(stat(tty, &sbuf) < 0) error("cannot stat");
if(argc < 2) {
if(sbuf.st_mode & 02)