From 480d7ea5a1ace02de61cd87aa96b3b884f71dbeb Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Sat, 19 Dec 2020 16:28:50 -0800 Subject: [PATCH] apply_local: Refactoring oops --- src/command/apply_local.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/apply_local.rs b/src/command/apply_local.rs index f6a456b..7dc1689 100644 --- a/src/command/apply_local.rs +++ b/src/command/apply_local.rs @@ -103,7 +103,7 @@ async fn escalate() -> ! { let exit = Command::new("sudo") .arg("--") .args(argv) - .arg("--no-sudo") + .arg("--we-are-launched-by-sudo") .spawn() .expect("Failed to run sudo to escalate privileges") .wait()