termux-packages/packages/dbus/bus-activation-helper.c.patch

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 */