MFC r261138:
Accept O_CLOEXEC in shm_open().
This commit is contained in:
parent
37071258d8
commit
a4a573ce18
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user