Fix su --shell argument handling for ksud magic mount (#309)

Co-authored-by: Wang Han <416810799@qq.com>
This commit is contained in:
Oscar1640
2025-04-17 10:36:04 -05:00
committed by GitHub
parent 250310fc9f
commit b298b4203a

View File

@@ -104,10 +104,11 @@ pub fn root_shell() -> Result<()> {
"preserve-environment", "preserve-environment",
"preserve the entire environment", "preserve the entire environment",
); );
opts.optflag( opts.optopt(
"s", "s",
"shell", "shell",
"use SHELL instead of the default /system/bin/sh", "use SHELL instead of the default /system/bin/sh",
"SHELL",
); );
opts.optflag("v", "version", "display version number and exit"); opts.optflag("v", "version", "display version number and exit");
opts.optflag("V", "", "display version code and exit"); opts.optflag("V", "", "display version code and exit");