aboutsummaryrefslogtreecommitdiff
path: root/posix/bits
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2021-09-10 19:39:35 +0200
committerAurelien Jarno <aurelien@aurel32.net>2021-09-16 22:32:53 +0200
commit63a788f48a713f2081f200dd054df3e728b0e7c2 (patch)
tree6c003f9c053db9c56f0c4a3686f4d71cec522415 /posix/bits
parent876e51548cc5d96af5ea13febd0a1a75bfc04497 (diff)
downloadglibc-63a788f48a713f2081f200dd054df3e728b0e7c2.zip
glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.tar.gz
glibc-63a788f48a713f2081f200dd054df3e728b0e7c2.tar.bz2
posix: Fix attribute access mode on getcwd [BZ #27476]
There is a GNU extension that allows to call getcwd(NULL, >0). It is described in the documentation, but also directly in the unistd.h header, just above the declaration. Therefore the attribute access mode added in commit 06febd8c6705 is not correct. Drop it.
Diffstat (limited to 'posix/bits')
-rw-r--r--posix/bits/unistd.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h
index f083138..622adeb 100644
--- a/posix/bits/unistd.h
+++ b/posix/bits/unistd.h
@@ -199,10 +199,9 @@ __NTH (readlinkat (int __fd, const char *__restrict __path,
#endif
extern char *__getcwd_chk (char *__buf, size_t __size, size_t __buflen)
- __THROW __wur __attr_access ((__write_only__, 1, 2));
+ __THROW __wur;
extern char *__REDIRECT_NTH (__getcwd_alias,
- (char *__buf, size_t __size), getcwd)
- __wur __attr_access ((__write_only__, 1, 2));
+ (char *__buf, size_t __size), getcwd) __wur;
extern char *__REDIRECT_NTH (__getcwd_chk_warn,
(char *__buf, size_t __size, size_t __buflen),
__getcwd_chk)