Upstream agrees with increasing the size of HAL_PATH_MAX.
http://cgit.freedesktop.org/hal/commit/?id=a2c3dd5a04d79265772c09c4280606d5c2ed72c6
The problem seems to be in realpath and only shows when gcc -O2 or higher is used. This simple test program shows the issue.
#include <stdlib.h>
int main(int argc, char **argv) { char buf[512]; realpath(argv[1], buf); return 0; }
Upstream agrees with increasing the size of HAL_PATH_MAX.
http:// cgit.freedeskto p.org/hal/ commit/ ?id=a2c3dd5a04d 79265772c09c428 0606d5c2ed72c6
The problem seems to be in realpath and only shows when gcc -O2 or higher is used. This simple test program shows the issue.
#include <stdlib.h>
int main(int argc, char **argv) {
char buf[512];
realpath(argv[1], buf);
return 0;
}