Revert to old su -c behavior

This commit is contained in:
topjohnwu 2021-01-16 23:59:31 -08:00
parent b5b62e03af
commit 1f4c595cd3
2 changed files with 1 additions and 3 deletions

View File

@ -27,6 +27,6 @@ android.injected.testOnly=false
kapt.incremental.apt=true
# Magisk
magisk.versionCode=21302
magisk.versionCode=21303
magisk.ndkVersion=21d
magisk.fullNdkVersion=21.3.6528147

View File

@ -105,9 +105,7 @@ int su_client_main(int argc, char *argv[]) {
for (int i = optind - 1; i < argc; ++i) {
if (!su_req.command.empty())
su_req.command += ' ';
su_req.command += '\'';
su_req.command += argv[i];
su_req.command += '\'';
}
optind = argc;
break;