[Bug 202892] open with O_CREAT | O_DIRECTORY when path references a symlink

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Sep 4 15:52:34 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202892

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org
             Status|New                         |In Progress

--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
Per rwatson' answers, the biggest issue there is the O_DIRECTORY | O_CREAT
handling, which should not create files.  Patch attached fixes the issue to me.
 Also, the behaviour of the patch is same as on Linux, where open("broken
symlink", O_CREAT) causes creation of the symlink target.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list