Fix su --shell argument handling (#2529)

This fixes https://github.com/tiann/KernelSU/issues/2523.
This commit is contained in:
Wang Han
2025-03-25 21:09:29 +08:00
committed by GitHub
parent c28411bce3
commit 4ea7c4c83c

View File

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