mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
parent
42d4bcc6c5
commit
aa8067cbe7
1 changed files with 1 additions and 1 deletions
|
|
@ -1147,7 +1147,7 @@ openatfp(struct thread *td, int dirfd, const char *path,
|
|||
* except O_EXEC is ignored.
|
||||
*/
|
||||
if ((flags & O_PATH) != 0) {
|
||||
flags &= ~(O_CREAT | O_ACCMODE);
|
||||
flags &= ~O_ACCMODE;
|
||||
} else if ((flags & O_EXEC) != 0) {
|
||||
if (flags & O_ACCMODE)
|
||||
return (EINVAL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue