about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Sebor <msebor@redhat.com>2021-01-10 13:45:39 -0700
committerMartin Sebor <msebor@redhat.com>2021-01-10 13:45:39 -0700
commit2cd361b5114ff3f2f55684458d8bf9836c624b90 (patch)
tree994028d055561394378673fc920e1803adb44679
parent7a7226543611897103c7483bec160547294dcf0d (diff)
downloadglibc-2cd361b5114ff3f2f55684458d8bf9836c624b90.tar.gz
glibc-2cd361b5114ff3f2f55684458d8bf9836c624b90.tar.xz
glibc-2cd361b5114ff3f2f55684458d8bf9836c624b90.zip
posix: Correct attribute access mode on readlinkat [BZ #27024].
-rw-r--r--posix/unistd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/unistd.h b/posix/unistd.h
index 1306aded46..3f22763379 100644
--- a/posix/unistd.h
+++ b/posix/unistd.h
@@ -831,7 +831,7 @@ extern int symlinkat (const char *__from, int __tofd,
 /* Like readlink but a relative PATH is interpreted relative to FD.  */
 extern ssize_t readlinkat (int __fd, const char *__restrict __path,
 			   char *__restrict __buf, size_t __len)
-     __THROW __nonnull ((2, 3)) __wur __attr_access ((__read_only__, 3, 4));
+     __THROW __nonnull ((2, 3)) __wur __attr_access ((__write_only__, 3, 4));
 #endif
 
 /* Remove the link NAME.  */