chown.2: Note that 'dirfd' can be AT_FDCWD when AT_EMPTY_PATH is used

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-03-19 16:51:19 +01:00
parent d81d850651
commit 481142b9e2
1 changed files with 6 additions and 1 deletions

View File

@ -35,7 +35,7 @@
.\" (bsdgroups versus sysvgroups, and the effect of the parent .\" (bsdgroups versus sysvgroups, and the effect of the parent
.\" directory's set-group-ID permission bit). .\" 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 .SH NAME
chown, fchown, lchown, fchownat \- change ownership of a file chown, fchown, lchown, fchownat \- change ownership of a file
.SH SYNOPSIS .SH SYNOPSIS
@ -195,6 +195,11 @@ flag).
In this case, In this case,
.I dirfd .I dirfd
can refer to any type of file, not just a directory. 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 This flag is Linux-specific; define
.B _GNU_SOURCE .B _GNU_SOURCE
.\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed .\" Before glibc 2.16, defining _ATFILE_SOURCE sufficed