mirror of https://github.com/mkerrisk/man-pages
link.2: When AT_EMPTY_PATH is specified, 'olddirfd' must not refer to a directory
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8c5fcd21e5
commit
d81d850651
13
man2/link.2
13
man2/link.2
|
@ -29,7 +29,7 @@
|
|||
.\" Modified 2004-06-23 by Michael Kerrisk <mtk.manpages@gmail.com>
|
||||
.\" Modified 2005-04-04, as per suggestion by Michael Hardt for rename.2
|
||||
.\"
|
||||
.TH LINK 2 2014-02-21 "Linux" "Linux Programmer's Manual"
|
||||
.TH LINK 2 2014-03-19 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
link, linkat \- make a new name for a file
|
||||
.SH SYNOPSIS
|
||||
|
@ -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.
|
||||
must refer to a file other than a directory.
|
||||
The caller must have the
|
||||
.BR CAP_DAC_READ_SEARCH
|
||||
capability in order to use this flag;
|
||||
|
@ -300,6 +300,15 @@ or similar for
|
|||
.I newpath
|
||||
and
|
||||
.I newdirfd
|
||||
.TP
|
||||
.B EPERM
|
||||
.BR AT_EMPTY_PATH
|
||||
was specified in
|
||||
.IR flags ,
|
||||
.I oldpath
|
||||
is an empty string, and
|
||||
.IR olddirfd
|
||||
refers to a directory.
|
||||
.SH VERSIONS
|
||||
.BR linkat ()
|
||||
was added to Linux in kernel 2.6.16;
|
||||
|
|
Loading…
Reference in New Issue