summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-07-06 18:35:20 +0000
committerderaadt <deraadt@openbsd.org>1998-07-06 18:35:20 +0000
commit452b2b76b016320f8dcf32381ae9a1d6d15bca75 (patch)
treec59f013eb1813a64161ff611c45a44467da79800
parentfix openbsd tag (diff)
downloadwireguard-openbsd-452b2b76b016320f8dcf32381ae9a1d6d15bca75.tar.xz
wireguard-openbsd-452b2b76b016320f8dcf32381ae9a1d6d15bca75.zip
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);
}