chore: treat icacls exit 1 as recoverable
This commit is contained in:
parent
4b0bdd7026
commit
5105d2cfed
1 changed files with 7 additions and 4 deletions
|
|
@ -626,11 +626,14 @@ exit $process.ExitCode
|
|||
let _ = fs::remove_file(&launcher);
|
||||
let _ = fs::remove_file(&payload);
|
||||
|
||||
if status.success() {
|
||||
Ok(())
|
||||
} else {
|
||||
Err(format!("elevated ps exit {:?}", status.code()))
|
||||
if let Some(code) = status.code() {
|
||||
if code == 0 || code == 1 {
|
||||
return Ok(());
|
||||
}
|
||||
} else if status.success() {
|
||||
return Ok(());
|
||||
}
|
||||
Err(format!("elevated ps exit {:?}", status.code()))
|
||||
}
|
||||
|
||||
fn fix_localservice_acl() -> Result<(), String> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue