diff options
| author | 2012-02-24 18:53:45 -0800 | |
|---|---|---|
| committer | 2012-02-24 18:53:45 -0800 | |
| commit | cb115fca1fe16d01f9a75f3963c87feafc0d42b8 (patch) | |
| tree | b666b5ecae1cdbe48d2f94bb4bfcc32b65c29d8c /cmds/dumpstate/utils.c | |
| parent | 5265466e8a5453e738713869f61ca45482b85319 (diff) | |
dumpstate: use /system/xbin/su directly
This avoids accidentally picking up very common "su" alternatives
that developers use.
It also avoids having to search the PATH for su.
Change-Id: Ib9a3eeca7f4d892f2c9ea9ca1132304ef8e8484b
Diffstat (limited to 'cmds/dumpstate/utils.c')
| -rw-r--r-- | cmds/dumpstate/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index 21526f9c1b61..0d5ab9019405 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c @@ -127,7 +127,7 @@ void do_showmap(int pid, const char *name) { sprintf(title, "SHOW MAP %d (%s)", pid, name); sprintf(arg, "%d", pid); - run_command(title, 10, "su", "root", "showmap", arg, NULL); + run_command(title, 10, SU_PATH, "root", "showmap", arg, NULL); } /* prints the contents of a file */ |