diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-03 14:33:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1998-07-03 14:33:39 +0000 |
commit | 6037a7d60eefe86490435fb935c2b9fbcb67badd (patch) | |
tree | 43d65c477be5bd07a7bb6b55ee1e8dfb3502e6b7 /libexec/talkd/announce.c | |
parent | a6364b20541dbcf91256feea36f42489e376663b (diff) |
S_IWGRP
Diffstat (limited to 'libexec/talkd/announce.c')
-rw-r--r-- | libexec/talkd/announce.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/talkd/announce.c b/libexec/talkd/announce.c index 9846cfa7ede..ec6b15697a9 100644 --- a/libexec/talkd/announce.c +++ b/libexec/talkd/announce.c @@ -1,4 +1,4 @@ -/* $OpenBSD: announce.c,v 1.6 1996/07/18 00:18:53 deraadt Exp $ */ +/* $OpenBSD: announce.c,v 1.7 1998/07/03 14:33:38 deraadt Exp $ */ /* * Copyright (c) 1983 Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)announce.c 5.9 (Berkeley) 2/26/91";*/ -static char rcsid[] = "$Id: announce.c,v 1.6 1996/07/18 00:18:53 deraadt Exp $"; +static char rcsid[] = "$Id: announce.c,v 1.7 1998/07/03 14:33:38 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -123,7 +123,7 @@ announce_proc(request, remote_machine) ioctl(fileno(tf), TIOCNOTTY, (struct sgttyb *) 0); if (fstat(fileno(tf), &stbuf) < 0) return (PERMISSION_DENIED); - if ((stbuf.st_mode&020) == 0) + if ((stbuf.st_mode&S_IWGRP) == 0) return (PERMISSION_DENIED); print_mesg(tf, request, remote_machine); fclose(tf); |