diff options
author | Martin Sebor <msebor@redhat.com> | 2021-01-10 13:45:39 -0700 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2021-09-09 00:43:41 +0200 |
commit | 5c77e0cca9090cd99c2055249b46c2282672b5c0 (patch) | |
tree | d722099af438092cfb11e21fe56ef5871d7ae92a | |
parent | 182ffd8e757aa44e2b8136cfc0995b04c2a4b654 (diff) | |
download | glibc-5c77e0cca9090cd99c2055249b46c2282672b5c0.tar glibc-5c77e0cca9090cd99c2055249b46c2282672b5c0.tar.gz glibc-5c77e0cca9090cd99c2055249b46c2282672b5c0.tar.bz2 glibc-5c77e0cca9090cd99c2055249b46c2282672b5c0.zip |
posix: Correct attribute access mode on readlinkat [BZ #27024].
(cherry picked from commit 2cd361b5114ff3f2f55684458d8bf9836c624b90)
-rw-r--r-- | posix/unistd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/unistd.h b/posix/unistd.h index 32b8161619..aac164dc9c 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. */ |