Merge change 24762 into eclair

* changes:
  dumpstate: Switch back to running as non-root
This commit is contained in:
Android (Google) Code Review
2009-09-11 17:45:10 -04:00

View File

@@ -216,11 +216,9 @@ int main(int argc, char *argv[]) {
} else } else
vibrate_fd = -1; vibrate_fd = -1;
#if 0
/* switch to non-root user and group */ /* switch to non-root user and group */
setgroups(sizeof(groups)/sizeof(groups[0]), groups); setgroups(sizeof(groups)/sizeof(groups[0]), groups);
setuid(AID_SHELL); setuid(AID_SHELL);
#endif
/* make it safe to use both printf and STDOUT_FILENO */ /* make it safe to use both printf and STDOUT_FILENO */
setvbuf(stdout, 0, _IONBF, 0); setvbuf(stdout, 0, _IONBF, 0);