Accept O_CLOEXEC in shm_open().

Reviewed by:	jilles, jhb
MFC after:	1 week
This commit is contained in:
Robert Millan 2014-01-24 21:05:07 +00:00
parent af3088290b
commit f55a7d3058

View File

@ -704,7 +704,7 @@ sys_shm_open(struct thread *td, struct shm_open_args *uap)
(uap->flags & O_ACCMODE) != O_RDWR)
return (EINVAL);
if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC)) != 0)
if ((uap->flags & ~(O_ACCMODE | O_CREAT | O_EXCL | O_TRUNC | O_CLOEXEC)) != 0)
return (EINVAL);
fdp = td->td_proc->p_fd;