Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Sep 2015 15:52:34 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 202892] open with O_CREAT | O_DIRECTORY when path references a symlink
Message-ID:  <bug-202892-8-CK18jhJQDH@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202892-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202892-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=202892

Konstantin Belousov <kib@FreeBSD.org> changed:

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

--- Comment #1 from Konstantin Belousov <kib@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202892-8-CK18jhJQDH>