inotify.7: Note ENOTDIR error that can occur for IN_ONLYDIR

Note ENOTDIR error that occurs when requesting a watch on a
nondirectory with IN_ONLYDIR.

Reported-by: Paul Millar <paul.millar@desy.de>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2018-05-06 10:22:13 +02:00
parent 12507e51a4
commit 390795d76a
1 changed files with 6 additions and 1 deletions

View File

@ -358,7 +358,12 @@ watch list.
.BR IN_ONLYDIR " (since Linux 2.6.15)"
Watch
.I pathname
only if it is a directory.
only if it is a directory;
the error
.B ENOTDIR
results if
.I pathname
is not a directory.
Using this flag provides an application with a race-free way of
ensuring that the monitored object is a directory.
.RE