external/koush/Superuser
リビジョン | a6cf75c7351adf4977ca69695b0f83aa237b71fe (tree) |
---|---|
日時 | 2014-01-31 21:18:43 |
作者 | Danny Baumann <dannybaumann@web....> |
コミッター | Danny Baumann |
Fix merge derp: Emulated storage should be mounted in the child, not the
parent.
Change-Id: I7bb6e8db1a64de90e96783e07ff26932befe2742
@@ -356,12 +356,6 @@ static int daemon_accept(int fd) { | ||
356 | 356 | PLOGE("unable to write exit code"); |
357 | 357 | } |
358 | 358 | |
359 | -#ifdef SUPERUSER_EMBEDDED | |
360 | - if (mount_storage) { | |
361 | - mount_emulated_storage(multiuser_get_user_id(daemon_from_uid)); | |
362 | - } | |
363 | -#endif | |
364 | - | |
365 | 359 | close(fd); |
366 | 360 | LOGD("child exited"); |
367 | 361 | return code; |
@@ -406,6 +400,12 @@ static int daemon_accept(int fd) { | ||
406 | 400 | } |
407 | 401 | free(pts_slave); |
408 | 402 | |
403 | +#ifdef SUPERUSER_EMBEDDED | |
404 | + if (mount_storage) { | |
405 | + mount_emulated_storage(multiuser_get_user_id(daemon_from_uid)); | |
406 | + } | |
407 | +#endif | |
408 | + | |
409 | 409 | return run_daemon_child(infd, outfd, errfd, argc, argv); |
410 | 410 | } |
411 | 411 |