git: 5bc2e6e22774 - main - getfh: clarify that it is a privileged operation

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Thu, 23 Dec 2021 16:55:34 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e

commit 5bc2e6e22774f4663c971a4b5b7eaf4cb9a2485e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2021-12-23 15:24:27 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2021-12-23 16:54:43 +0000

    getfh: clarify that it is a privileged operation
    
    Reviewed by:    kib
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D33629
---
 lib/libc/sys/getfh.2 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/libc/sys/getfh.2 b/lib/libc/sys/getfh.2
index cd3d54f54d7f..e042839a00c4 100644
--- a/lib/libc/sys/getfh.2
+++ b/lib/libc/sys/getfh.2
@@ -29,7 +29,7 @@
 .\"	@(#)getfh.2	8.1 (Berkeley) 6/9/93
 .\" $FreeBSD$
 .\"
-.Dd February 23, 2021
+.Dd December 23, 2021
 .Dt GETFH 2
 .Os
 .Sh NAME
@@ -130,6 +130,7 @@ is called with an absolute
 it ignores the
 .Fa fd
 argument.
+.Pp
 These system calls are restricted to the superuser.
 .Sh RETURN VALUES
 .Rv -std
@@ -141,6 +142,8 @@ and
 system calls
 fail if one or more of the following are true:
 .Bl -tag -width Er
+.It Bq Er EPERM
+The caller does not have appropriate privilege to perform the operation.
 .It Bq Er ENOTDIR
 A component of the path prefix of
 .Fa path