summaryrefslogtreecommitdiffstats
path: root/man3/euidaccess.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--man3/euidaccess.311
1 files changed, 5 insertions, 6 deletions
diff --git a/man3/euidaccess.3 b/man3/euidaccess.3
index a8d1218..c4fcc0e 100644
--- a/man3/euidaccess.3
+++ b/man3/euidaccess.3
@@ -3,7 +3,7 @@
.\"
.\" SPDX-License-Identifier: Linux-man-pages-copyleft
.\"
-.TH euidaccess 3 2023-07-20 "Linux man-pages 6.05.01"
+.TH euidaccess 3 2023-10-31 "Linux man-pages 6.7"
.SH NAME
euidaccess, eaccess \- check effective user's permissions for a file
.SH LIBRARY
@@ -13,7 +13,7 @@ Standard C library
.nf
.BR "#define _GNU_SOURCE" " /* See feature_test_macros(7) */"
.B #include <unistd.h>
-.PP
+.P
.BI "int euidaccess(const char *" pathname ", int " mode );
.BI "int eaccess(const char *" pathname ", int " mode );
.fi
@@ -28,13 +28,13 @@ However, whereas
performs checks using the real user and group identifiers of the process,
.BR euidaccess ()
uses the effective identifiers.
-.PP
+.P
.I mode
is a mask consisting of one or more of
.BR R_OK ", " W_OK ", " X_OK ", and " F_OK ,
with the same meanings as for
.BR access (2).
-.PP
+.P
.BR eaccess ()
is a synonym for
.BR euidaccess (),
@@ -65,7 +65,6 @@ T{
.BR eaccess ()
T} Thread safety MT-Safe
.TE
-.sp 1
.SH VERSIONS
Some other systems have an
.\" e.g., FreeBSD 6.1.
@@ -84,7 +83,7 @@ performing some operation based on that information leads to race conditions:
the file permissions may change between the two steps.
Generally, it is safer just to attempt the desired operation and handle
any permission error that occurs.
-.PP
+.P
This function always dereferences symbolic links.
If you need to check the permissions on a symbolic link, use
.BR faccessat (2)