From b03841dbc4e707bffede1995b5055757f0a66c0a Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 14 Jul 2011 18:45:45 +0100 Subject: activation-helper: check_permissions: in the test build, don't have unused variables In the real build they're used to check permissions. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson --- bus/activation-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bus/activation-helper.c b/bus/activation-helper.c index baba8f04..b7ea6867 100644 --- a/bus/activation-helper.c +++ b/bus/activation-helper.c @@ -184,6 +184,7 @@ clear_environment (DBusError *error) static dbus_bool_t check_permissions (const char *dbus_user, DBusError *error) { +#ifndef ACTIVATION_LAUNCHER_TEST uid_t uid, euid; struct passwd *pw; @@ -191,7 +192,6 @@ check_permissions (const char *dbus_user, DBusError *error) uid = 0; euid = 0; -#ifndef ACTIVATION_LAUNCHER_TEST /* bail out unless the dbus user is invoking the helper */ pw = getpwnam(dbus_user); if (!pw) -- cgit v1.2.3