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 ShirkNeko
parent 52514cc5b3
commit f02ab90ca9

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");