From 481142b9e21f5ab706a22329c23bafd5f93f30f0 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Wed, 19 Mar 2014 16:51:19 +0100 Subject: [PATCH] chown.2: Note that 'dirfd' can be AT_FDCWD when AT_EMPTY_PATH is used Signed-off-by: Michael Kerrisk --- man2/chown.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/man2/chown.2 b/man2/chown.2 index c7b2bd6c0..f21c0d5ad 100644 --- a/man2/chown.2 +++ b/man2/chown.2 @@ -35,7 +35,7 @@ .\" (bsdgroups versus sysvgroups, and the effect of the parent .\" directory's set-group-ID permission bit). .\" -.TH CHOWN 2 2014-02-21 "Linux" "Linux Programmer's Manual" +.TH CHOWN 2 2014-03-19 "Linux" "Linux Programmer's Manual" .SH NAME chown, fchown, lchown, fchownat \- change ownership of a file .SH SYNOPSIS @@ -195,6 +195,11 @@ flag). In this case, .I dirfd can refer to any type of file, not just a directory. +If +.I dirfd +is +.BR AT_FDCWD , +the call operates on the current working directory. This flag is Linux-specific; define .B _GNU_SOURCE .\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed