Subject: Re: bug#53676: [PATCH 0/5] *** PulseAudio service improvements ***

From: Maxim Cournoyer <[email-masked]>
Date: Thu, 24 Feb 2022 11:36:20 -0500

Hello,

Maxim Cournoyer <[email-masked]> writes:

> Hi Maxime,
>
> Maxime Devos <[email-masked]> writes:
>
>> Maxim Cournoyer schreef op ma 07-02-2022 om 17:29 [-0500]:
>>> +    char canonicalPath[PATH_MAX];
>>
>> PATH_MAX does not exist on the Hurd, see
>> <https://www.gnu.org/software/hurd//community/gsoc/project_ideas/maxpath.html>.
>> Also, according to <https://insanecoding.blogspot.com/2007/11/pathmax-simply-isnt.html>
>> more a kind of minimum and not really a maximum; apparently
>> most uses of PATH_MAX are wrong.
>>
>> <https://www.gnu.org/software/hurd//hurd/porting/guidelines.html> recommends a
>> geometrically growing series.
>
> Interesting!  Note that PATH_MAX is already in use in that
> BubblewrapLauncher.cpp file.

For your information, the upstreamed patch [0] doesn't use PATH_MAX
anymore; it uses the FileSystem::realPath procedure of WebKit.  Thanks
to Liliana for mentioning its existence!

[0]  https://bugs.webkit.org/show_bug.cgi?id=211131

Maxim