]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
posix: Correct attribute access mode on readlinkat [BZ #27024].
authorMartin Sebor <msebor@redhat.com>
Sun, 10 Jan 2021 20:45:39 +0000 (13:45 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 8 Sep 2021 22:43:41 +0000 (00:43 +0200)
(cherry picked from commit 2cd361b5114ff3f2f55684458d8bf9836c624b90)

posix/unistd.h

index 32b8161619e6cf3081b9e8c6d2f38120a378f9a5..aac164dc9c4c473d603d9ef1cc67dac42d9339c2 100644 (file)
@@ -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.  */