summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-06 18:35:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-07-06 18:35:21 +0000
commit8cee62f01b2476c08af03735a81064676dc404f8 (patch)
treeb35b44e3a5955d2389fcb3a091508fe93851d889
parent44ae2aff874990d9ee53f74038f6aabb3762b910 (diff)
kill non-POSIX S_IWRITE
-rw-r--r--usr.bin/write/write.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/write/write.c b/usr.bin/write/write.c
index 92ef59bbc94..8c9285a9329 100644
--- a/usr.bin/write/write.c
+++ b/usr.bin/write/write.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: write.c,v 1.8 1996/10/26 22:49:12 downsj Exp $ */
+/* $OpenBSD: write.c,v 1.9 1998/07/06 18:35:20 deraadt Exp $ */
/* $NetBSD: write.c,v 1.5 1995/08/31 21:48:32 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)write.c 8.2 (Berkeley) 4/27/95";
#endif
-static char *rcsid = "$OpenBSD: write.c,v 1.8 1996/10/26 22:49:12 downsj Exp $";
+static char *rcsid = "$OpenBSD: write.c,v 1.9 1998/07/06 18:35:20 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -236,7 +236,7 @@ term_chk(tty, msgsokP, atimeP, showerror)
warn("%s", path);
return(1);
}
- *msgsokP = (s.st_mode & (S_IWRITE >> 3)) != 0; /* group write bit */
+ *msgsokP = (s.st_mode & S_IWGRP) != 0; /* group write bit */
*atimeP = s.st_atime;
return(0);
}