link.2: When using linkat() AT_EMPTY_PATH, 'olddirfd' must not be a directory

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2016-12-16 09:09:33 +01:00
parent 968b27aa1a
commit 217d573862
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ is an empty string, create a link to the file referenced by
flag).
In this case,
.I olddirfd
can refer to any type of file, not just a directory.
can refer to any type of file except a directory.
This will generally not work if the file has a link count of zero (files
created with
.BR O_TMPFILE