diff options
author | 2019-05-09 16:17:05 +0200 | |
---|---|---|
committer | 2019-05-09 16:17:05 +0200 | |
commit | 6fad6fce947e93c43d807f82b5d7265da83ea74d (patch) | |
tree | ffd074f515b08b89c0ec0fbf391ee6a535116a8e /src/firejail/dbus.c | |
parent | Blacklist ~/.dbus with nodbus (diff) | |
download | firejail-6fad6fce947e93c43d807f82b5d7265da83ea74d.tar.gz firejail-6fad6fce947e93c43d807f82b5d7265da83ea74d.tar.zst firejail-6fad6fce947e93c43d807f82b5d7265da83ea74d.zip |
Fix overridden DBUS_SESSION_BUS_ADDRESS with nodbus
Diffstat (limited to 'src/firejail/dbus.c')
-rw-r--r-- | src/firejail/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/firejail/dbus.c b/src/firejail/dbus.c index cf60a9430..94d872ca5 100644 --- a/src/firejail/dbus.c +++ b/src/firejail/dbus.c | |||
@@ -29,7 +29,7 @@ void dbus_session_disable(void) { | |||
29 | if (asprintf(&path, "/run/user/%d/bus", getuid()) == -1) | 29 | if (asprintf(&path, "/run/user/%d/bus", getuid()) == -1) |
30 | errExit("asprintf"); | 30 | errExit("asprintf"); |
31 | char *env_var; | 31 | char *env_var; |
32 | if (asprintf(&env_var, "DBUS_SESSION_BUS_ADDRESS=unix:path=%s", path) == -1) | 32 | if (asprintf(&env_var, "unix:path=%s", path) == -1) |
33 | errExit("asprintf"); | 33 | errExit("asprintf"); |
34 | 34 | ||
35 | // set a new environment variable: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/<UID>/bus | 35 | // set a new environment variable: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/<UID>/bus |