summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-17 07:46:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-11-17 07:46:25 +0000
commitf3d060c7ca1e56ec605e35b4cdda5884d4c2d35a (patch)
tree6d53215a1f217e24da2dbce80302cebe13b923ac /sys
parentd15901c9a788afbf366795d218153f0eedd8863b (diff)
only consider 9 bits for the umask
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_syscalls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 6aea61f5fa4..c73c3e1bd16 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_syscalls.c,v 1.29 1997/11/17 06:00:52 deraadt Exp $ */
+/* $OpenBSD: vfs_syscalls.c,v 1.30 1997/11/17 07:46:24 deraadt Exp $ */
/* $NetBSD: vfs_syscalls.c,v 1.71 1996/04/23 10:29:02 mycroft Exp $ */
/*
@@ -2207,7 +2207,7 @@ sys_umask(p, v, retval)
fdp = p->p_fd;
*retval = fdp->fd_cmask;
- fdp->fd_cmask = SCARG(uap, newmask) & ALLPERMS;
+ fdp->fd_cmask = SCARG(uap, newmask) & ACCESSPERMS;
return (0);
}