diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-30 12:04:14 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-30 12:04:14 +0000 |
commit | e09cd5b5d9f4bae5bb11ad7edc7f95adc050ed36 (patch) | |
tree | c74154517966322da8fcdf051051ded8be5b772b | |
parent | 835c943d1e3d17ed2f7dd596426cf902999cf7e9 (diff) |
use S_IWOTH
-rw-r--r-- | libexec/mail.local/mail.local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c index cc7e39db292..04311cbe7b4 100644 --- a/libexec/mail.local/mail.local.c +++ b/libexec/mail.local/mail.local.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";*/ -static char rcsid[] = "$Id: mail.local.c,v 1.6 1996/08/29 07:21:58 deraadt Exp $"; +static char rcsid[] = "$Id: mail.local.c,v 1.7 1996/08/30 12:04:13 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -258,7 +258,7 @@ getlock(name, pw) _PATH_MAILDIR, name); if (stat(_PATH_MAILDIR, &sb) != -1 && - (sb.st_mode & 7) == 7) { + (sb.st_mode & S_IWOTH) == S_IWOTH) { /* * We have a writeable spool, deal with it as * securely as possible. |