]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/fanotify_mark.2: AT_FDCWD plus NULL path doesn't work
authorJann Horn <jannh@google.com>
Fri, 29 May 2026 17:27:39 +0000 (19:27 +0200)
committerAlejandro Colomar <alx@kernel.org>
Wed, 3 Jun 2026 23:48:39 +0000 (01:48 +0200)
The fanotify_mark(2) manual page claims that AT_FDCWD works with a NULL
path, but there is no kernel code for that: in fanotify_find_path(), in
the `if (filename == NULL)` block, the fd is only used for a normal FD
lookup.

This was also already the case when this manpage was written back in
2014, so remove the bogus documentation.

Fixes: c200b422dfdb (2014-04-25; "fanotify_mark.2: New page documenting fanotify_mark(2)")
Signed-off-by: Jann Horn <jannh@google.com>
Message-ID: <20260529-fan-mark-cwd-v1-1-cdfb3b5b6d7c@google.com>
Acked-by: Amir Goldstein <amir73il@gmail.com>
Message-ID: <CAOQ4uxiHU5xK=_FsOBkkB0go9ACBb2fYcdVE6T2o=MYDcxaiaQ@mail.gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/fanotify_mark.2

index e561ffd2180f3e34aa774b4ccc2ad283a92b1f1b..a3b77537cb8ee3dfeecc3102beca86307c83d3aa 100644 (file)
@@ -560,14 +560,6 @@ defines the filesystem object to be marked.
 .IP \[bu]
 If
 .I path
-is NULL, and
-.I dirfd
-takes the special value
-.BR AT_FDCWD ,
-the current working directory is to be marked.
-.IP \[bu]
-If
-.I path
 is absolute, it defines the filesystem object to be marked, and
 .I dirfd
 is ignored.