link.2: Add EPERM error triggered by /proc/sys/fs/protected_hardlink

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2012-10-16 10:30:15 +02:00
parent f3996ef7f2
commit dc51f1ff84
1 changed files with 8 additions and 1 deletions

View File

@ -28,7 +28,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 2008-08-21 "Linux" "Linux Programmer's Manual"
.TH LINK 2 2012-10-16 "Linux" "Linux Programmer's Manual"
.SH NAME
link \- make a new name for a file
.SH SYNOPSIS
@ -115,6 +115,13 @@ The file system containing
.IR oldpath " and " newpath
does not support the creation of hard links.
.TP
.BR EPERM " (since Linux 3.6)"
The caller does not have permission to create a hard link to this file
(see the description of
.IR /proc/sys/fs/protected_hardlink
in
.BR proc (5)).
.TP
.B EROFS
The file is on a read-only file system.
.TP