From fd53da3318a6e7370df7c315232efc8970cf4d5a Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 13 Feb 2013 23:43:21 +0100 Subject: [PATCH] fchownat.2: Document AT_EMPTY_PATH Signed-off-by: Michael Kerrisk --- man2/fchownat.2 | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/man2/fchownat.2 b/man2/fchownat.2 index e91ff0b78..cc2953aa1 100644 --- a/man2/fchownat.2 +++ b/man2/fchownat.2 @@ -88,8 +88,25 @@ is absolute, then .I dirfd is ignored. +The .I flags -can either be 0, or include the following flag: +argument is a bit mask created by ORing together +0 or more of the following values; +.TP +.BR AT_EMPTY_PATH " (since Linux 2.6.39)" +.\" commit 65cfc6722361570bfe255698d9cd4dccaf47570d +If +.I pathname +is an empty string, operate on the file referred to by +.IR dirfd +(which may have been obtained using the +.BR open (2) +.B O_PATH +flag). +In this case, +.I dirfd +can refer to any type of file, not just a directory. + .TP .B AT_SYMLINK_NOFOLLOW If