]> git.ipfire.org Git - thirdparty/man-pages.git/commit
man/man2/open.2: Fix doc for O_CREAT | O_DIRECTORY
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 30 May 2025 07:20:19 +0000 (00:20 -0700)
committerAlejandro Colomar <alx@kernel.org>
Fri, 30 May 2025 12:44:36 +0000 (14:44 +0200)
commit4f965ab610b1a6229196e03ee9d802f1c8b87c64
treeee63c7d7301012f232c2e88400be795d7bf59a79
parent88948d32039c3666500e0979e9c605cbc3937a22
man/man2/open.2: Fix doc for O_CREAT | O_DIRECTORY

Although Linux kernels before 5.7 would create a regular file when
opening a nonexistent file with O_CREAT | O_DIRECTORY, this behavior
was changed to something deeply buggy in 5.7, and when the bug was
fixed in 6.4 this combination of open flags became invalid.

Adjust the documentation to match the 6.4+ behavior,
which makes more sense anyway.

Signed-off-by: Paul Eggert <eggert@cs.ucla.edu>
Message-ID: <20250530072029.344532-1-eggert@cs.ucla.edu>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/open.2