• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

external/koush/Superuser


Commit MetaInfo

Révision5292088613fe692ae788d61a89290cb20b45cbeb (tree)
l'heure2013-11-30 02:09:55
AuteurKoushik Dutta <koush@kous...>
CommiterKoushik Dutta

Message de Log

Merge pull request #211 from h1618/patch-1

assign user before use

Change Summary

Modification

--- a/Superuser/jni/su/activity.c
+++ b/Superuser/jni/su/activity.c
@@ -90,6 +90,9 @@ int send_result(struct su_context *ctx, policy_t policy) {
9090 char desired_uid[256];
9191 sprintf(desired_uid, "%d", ctx->to.uid);
9292
93+ char user[64];
94+ get_owner_login_user_args(ctx, user, sizeof(user));
95+
9396 if (0 != ctx->user.android_user_id) {
9497 char android_user_id[256];
9598 sprintf(android_user_id, "%d", ctx->user.android_user_id);
@@ -125,9 +128,6 @@ int send_result(struct su_context *ctx, policy_t policy) {
125128 silent_run(user_result_command);
126129 }
127130
128- char user[64];
129- get_owner_login_user_args(ctx, user, sizeof(user));
130-
131131 char *result_command[] = {
132132 AM_PATH,
133133 ACTION_RESULT,