]> 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)
committerMartin Sebor <msebor@redhat.com>
Sun, 10 Jan 2021 20:45:39 +0000 (13:45 -0700)
posix/unistd.h

index 1306aded46ff0e8a6838cb049a0526abc7e30a66..3f2276337944e67a68ea3d02f212a599bfdaded1 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.  */