daemon: realpath segfault fix

Lennart,

Apparently I was debugging this at the same time as you. I can't figure out
why my Fedora 11 install with glibc-2.10 has a glibc realpath that doesn't
match the gnu documentation and returns null. But it does.

Your commit aa8ce5bb9b almost fixed my
problem, but it needs a tweak.

Thanks,
David Yoder
This commit is contained in:
David Yoder 2009-10-30 09:54:08 -05:00 committed by Lennart Poettering
parent 542fa468c2
commit 5c57650769

View file

@ -425,7 +425,7 @@ int main(int argc, char *argv[]) {
pa_set_env("LD_BIND_NOW", "1");
if (!(canonical_rp = pa_realpath(PA_BINARY))) {
if ((canonical_rp = pa_realpath(PA_BINARY))) {
if ((rp = pa_readlink("/proc/self/exe"))) {