ksud: fix windows build

This commit is contained in:
tiann
2023-04-04 14:33:25 +08:00
parent 8d12f96d8b
commit 5be8fe39d0

View File

@@ -126,7 +126,7 @@ pub fn root_shell() -> Result<()> {
} }
if matches.opt_present("v") { if matches.opt_present("v") {
println!("{}:KernelSU", defs::VERSION_NAME); println!("{}:KernelSU", "25.2");
return Ok(()); return Ok(());
} }
@@ -161,6 +161,7 @@ pub fn root_shell() -> Result<()> {
} }
let mut uid = 0; // default uid = 0(root) let mut uid = 0; // default uid = 0(root)
#[cfg(unix)]
if free_idx < matches.free.len() { if free_idx < matches.free.len() {
let name = &matches.free[free_idx]; let name = &matches.free[free_idx];
uid = unsafe { uid = unsafe {