diff options
-rw-r--r-- | src/daemon/Daemon.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/daemon/Daemon.cpp b/src/daemon/Daemon.cpp index b8c23edd..d7ff5781 100644 --- a/src/daemon/Daemon.cpp +++ b/src/daemon/Daemon.cpp @@ -898,6 +898,13 @@ int main(int argc, char** argv) if (opts & OPT_s) start_syslog_logging(); + /* When dbus daemon starts us, it doesn't set PATH + * (I saw it set only DBUS_STARTER_ADDRESS and DBUS_STARTER_BUS_TYPE). + * In this case, set something sane: + */ + if (!getenv("PATH")) + putenv((char*)"PATH=/usr/sbin:/usr/bin:/sbin:/bin"); + putenv(xasprintf("ABRT_VERBOSE=%u", g_verbose)); msg_prefix = "abrtd"; /* for log(), error_msg() and such */ |