30 lines
769 B
Diff
30 lines
769 B
Diff
|
From d31b65e8f1ff1860aef79317ba270d7d2cefb041 Mon Sep 17 00:00:00 2001
|
||
|
From: David Zeuthen <davidz@redhat.com>
|
||
|
Date: Sat, 21 Jan 2012 16:26:46 -0500
|
||
|
Subject: [PATCH] Ensure PATH is set
|
||
|
|
||
|
Apparently PATH may be empty if activated by recent D-Bus daemons.
|
||
|
|
||
|
Signed-off-by: David Zeuthen <davidz@redhat.com>
|
||
|
---
|
||
|
src/main.c | 3 +++
|
||
|
1 files changed, 3 insertions(+), 0 deletions(-)
|
||
|
|
||
|
diff --git a/src/main.c b/src/main.c
|
||
|
index a330a58..0039fe8 100644
|
||
|
--- a/src/main.c
|
||
|
+++ b/src/main.c
|
||
|
@@ -140,6 +140,9 @@ main (int argc,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
+ if (g_getenv ("PATH") == NULL)
|
||
|
+ g_setenv ("PATH", "/usr/bin:/bin:/usr/sbin:/sbin", TRUE);
|
||
|
+
|
||
|
udisks_notice ("udisks daemon version %s starting", PACKAGE_VERSION);
|
||
|
|
||
|
loop = g_main_loop_new (NULL, FALSE);
|
||
|
--
|
||
|
1.7.7.5
|
||
|
|