diff options
| author | Michal Toman <mtoman@redhat.com> | 2010-10-19 10:57:16 +0200 |
|---|---|---|
| committer | Michal Toman <mtoman@redhat.com> | 2010-10-19 10:57:16 +0200 |
| commit | 8ccb8e59a6f295481b1d0b664701bb421b041e28 (patch) | |
| tree | b05ba340714831c049dc830c5d6db0b9f313d46f /src/daemon/Daemon.cpp | |
| parent | 2ba325a217d4d08fb867d1197a89c53f49ab85d5 (diff) | |
| parent | 41473dbc4a685a4e33debaf2a9103da8bcd6429f (diff) | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'src/daemon/Daemon.cpp')
| -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 */ |
