Comment 14 for bug 525245

Revision history for this message
Stephen Day (sd) wrote :

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;
}