summaryrefslogtreecommitdiff
path: root/src/shared/dbus-common.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-08-23 18:47:01 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-03 18:59:04 -0700
commit88fae6e0441d4195e089434f07d3e7fd811d6297 (patch)
treef5117932fa7dbf0e7cec4a11d01b87ca521623aa /src/shared/dbus-common.c
parentfe1fed02c7637a2c18cd575f78be7fda27972148 (diff)
shared: in code that might get called from suid programs use __secure_getenv() rather than getenv()
It's better to be safe than sorry.
Diffstat (limited to 'src/shared/dbus-common.c')
-rw-r--r--src/shared/dbus-common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dbus-common.c b/src/shared/dbus-common.c
index da2dc2e983..8d7c4620ce 100644
--- a/src/shared/dbus-common.c
+++ b/src/shared/dbus-common.c
@@ -121,7 +121,7 @@ int bus_connect(DBusBusType t, DBusConnection **_bus, bool *_private, DBusError
* try via XDG_RUNTIME_DIR first, then
* fallback to normal bus access */
- e = getenv("XDG_RUNTIME_DIR");
+ e = __secure_getenv("XDG_RUNTIME_DIR");
if (e) {
char *p;