• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

external/koush/Superuser


Commit MetaInfo

Revision7bf5efdff76698763f0bcbfff1a2846bd56b7b1f (tree)
Time2014-02-05 17:10:28
AuthorDanny Baumann <dannybaumann@web....>
CommiterGerrit Code Review

Log Message

Merge "Fix merge derp: Emulated storage should be mounted in the child, not the parent." into cm-11.0

Change Summary

Incremental Difference

--- a/Superuser/jni/su/daemon.c
+++ b/Superuser/jni/su/daemon.c
@@ -356,12 +356,6 @@ static int daemon_accept(int fd) {
356356 PLOGE("unable to write exit code");
357357 }
358358
359-#ifdef SUPERUSER_EMBEDDED
360- if (mount_storage) {
361- mount_emulated_storage(multiuser_get_user_id(daemon_from_uid));
362- }
363-#endif
364-
365359 close(fd);
366360 LOGD("child exited");
367361 return code;
@@ -406,6 +400,12 @@ static int daemon_accept(int fd) {
406400 }
407401 free(pts_slave);
408402
403+#ifdef SUPERUSER_EMBEDDED
404+ if (mount_storage) {
405+ mount_emulated_storage(multiuser_get_user_id(daemon_from_uid));
406+ }
407+#endif
408+
409409 return run_daemon_child(infd, outfd, errfd, argc, argv);
410410 }
411411