summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Yoder <davidmyoder@gmail.com>2009-10-30 09:54:08 -0500
committerLennart Poettering <lennart@poettering.net>2009-10-31 01:56:59 +0100
commit5c576507693c1d7c4aa8c51656b37c91bcf1289b (patch)
tree5f83bdd9ca1a18f3c4ba4890cd77064a44e33c87
parent542fa468c26c5035485dc73392c57c222183b510 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 576fc3e6..c73e9afc 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -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"))) {