Skip to content

Commit 57d607f

Browse files
author
git-core
committed
Use DEFAULT_COMMAND intead of hardcoded name for default shell
1 parent 983d8e0 commit 57d607f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

su.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ static void allow(char *shell, mode_t mask)
293293
send_intent(&su_from, &su_to, "", 1, 1);
294294

295295
if (!strcmp(shell, "")) {
296-
strcpy(shell , "/system/bin/sh");
296+
strcpy(shell , DEFAULT_COMMAND);
297297
}
298298
exe = strrchr (shell, '/') + 1;
299299
setresgid(to->uid, to->uid, to->uid);

0 commit comments

Comments
 (0)