Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a131e52 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

dumpstate: Switch back to running as non-root



Now that we have straightened out the permissions on /data/dontpanic,
root is no longer necessary.

Change-Id: Ic895d712c2e929e4935707da321e1a2b015285c0
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent d304ae58
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -216,11 +216,9 @@ int main(int argc, char *argv[]) {
    } else
        vibrate_fd = -1;

#if 0
    /* switch to non-root user and group */
    setgroups(sizeof(groups)/sizeof(groups[0]), groups);
    setuid(AID_SHELL);
#endif

    /* make it safe to use both printf and STDOUT_FILENO */ 
    setvbuf(stdout, 0, _IONBF, 0);