diff options
author | David Yoder <davidmyoder@gmail.com> | 2009-10-30 09:54:08 -0500 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-11-11 05:15:30 +0100 |
commit | bfb17357cdda34d3595ebd573b04adb5b80489f2 (patch) | |
tree | b776be7d1bbe5ee03cde8ee78855136c00ffaf6a | |
parent | 973a4ebdba1eb229c664889ffef9b4e557d7a9b1 (diff) |
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 aa8ce5bb9b159abb2ffb0f43996340566fc2e9c6 almost fixed my
problem, but it needs a tweak.
Thanks,
David Yoder
-rw-r--r-- | src/daemon/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c index ff30908e..b4625016 100644 --- a/src/daemon/main.c +++ b/src/daemon/main.c @@ -423,7 +423,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"))) { |