0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-04 18:45:52 +00:00
termux-packages/packages/dbus/bus-activation-helper.c.patch
Tee KOBAYASHI 34bf2f3a1f dbus: Do not try to switch user
as Termux is a single-user environment.
2022-11-12 14:55:58 +00:00

13 lines
331 B
Diff

--- a/bus/activation-helper.c
+++ b/bus/activation-helper.c
@@ -294,7 +294,8 @@
static dbus_bool_t
switch_user (char *user, DBusError *error)
{
-#ifndef ACTIVATION_LAUNCHER_TEST
+/* Termux is a single-user environment. */
+#if !defined ACTIVATION_LAUNCHER_TEST && !defined __ANDROID__
struct passwd *pw;
/* find user */