]> git.ipfire.org Git - thirdparty/glibc.git/commit
posix: Fix attribute access mode on getcwd [BZ #27476]
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 10 Sep 2021 17:39:35 +0000 (19:39 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 19 Sep 2021 16:48:29 +0000 (18:48 +0200)
commit1d4002393974ae580596724c17a42b9c945663e0
treeb073c9348f5e05cdf0c24511c55f07ebc0ae94b0
parentd299f19889cb3b4ffc1c5b59317b7bf684faaa3e
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.

(cherry picked from commit 63a788f48a713f2081f200dd054df3e728b0e7c2)
posix/bits/unistd.h
posix/unistd.h