OSDN Git Service

Update activity.c
authorh1618 <h1618@online.de>
Thu, 28 Nov 2013 22:42:52 +0000 (23:42 +0100)
committerh1618 <h1618@online.de>
Thu, 28 Nov 2013 22:42:52 +0000 (23:42 +0100)
another am invocation with unconditional --user (the last one on line 185 needs no condition as it is only called in multiuser mode)

Superuser/jni/su/activity.c

index 5e7163f..c476a47 100644 (file)
@@ -118,7 +118,7 @@ int send_result(struct su_context *ctx, policy_t policy) {
             "--es",
             "action",
             policy == ALLOW ? "allow" : "deny",
-            "--user",
+            user[0] ? "--user" : NULL,
             android_user_id,
             NULL
         };