[webkit-changes] [WebKit/WebKit] 598f74: Fix GNU/Hurd build by avoiding PATH_MAX usage
Samuel Thibault
noreply at github.com
Wed Jan 15 09:21:02 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 598f74dba3e992cdc11d1f3a8f5aa6f53c60fdd7
https://github.com/WebKit/WebKit/commit/598f74dba3e992cdc11d1f3a8f5aa6f53c60fdd7
Author: Samuel Thibault <samuel.thibault at ens-lyon.org>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M Source/JavaScriptCore/API/tests/testapi.c
M Source/WTF/wtf/playstation/FileSystemPlayStation.cpp
M Source/WTF/wtf/posix/FileSystemPOSIX.cpp
M Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp
Log Message:
-----------
Fix GNU/Hurd build by avoiding PATH_MAX usage
https://bugs.webkit.org/show_bug.cgi?id=285806
Reviewed by Darin Adler.
This is a rework of the patch proposed on
https://bugs.webkit.org/show_bug.cgi?id=219572
GNU/Hurd does not define an arbitrary PATH_MAX limitation.
- Constructed paths can be allocated as appropriate.
- For realpath() calls, since posix 2008 and since long on bsd/linux-like
OS, realpath() can be passed NULL.
* Source/JavaScriptCore/API/tests/testapi.c:
(main): Pass NULL to realpath().
* Source/WTF/wtf/playstation/FileSystemPlayStation.cpp:
(WTF::FileSystemImpl::listDirectorySub): Compute buffer size.
(WTF::FileSystemImpl::realPath): Pass nullptr to realpath().
* Source/WTF/wtf/posix/FileSystemPOSIX.cpp:
(WTF::FileSystemImpl::openTemporaryFile): Compute buffer size.
* Source/WebCore/platform/text/hyphen/HyphenationLibHyphen.cpp:
(WebCore::scanDirectoryForDictionaries): Use FileSystem::realPath().
Canonical link: https://commits.webkit.org/288943@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list