From dc51f1ff84381c7dcae1f5b9eda9f75262bbe90b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 16 Oct 2012 10:30:15 +0200 Subject: [PATCH] link.2: Add EPERM error triggered by /proc/sys/fs/protected_hardlink Signed-off-by: Michael Kerrisk --- man2/link.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/man2/link.2 b/man2/link.2 index 0f17c3de4..4de8fb548 100644 --- a/man2/link.2 +++ b/man2/link.2 @@ -28,7 +28,7 @@ .\" Modified 2004-06-23 by Michael Kerrisk .\" 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