From 63f4e0165010ea8e2b0d0a674c21cd0b4e8b3d83 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Mon, 24 Jan 2022 20:32:48 +0200 Subject: [PATCH] Preserve DIFFPROG when running Pacdiff in sudo (fix #842) --- src/steps/os/linux.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/steps/os/linux.rs b/src/steps/os/linux.rs index b0b5b6a3..0d5dcd2a 100644 --- a/src/steps/os/linux.rs +++ b/src/steps/os/linux.rs @@ -544,7 +544,11 @@ pub fn run_config_update(sudo: Option<&PathBuf>, run_type: RunType) -> Result<() } print_separator("Configuration update"); - run_type.execute(sudo).arg(pacdiff).check_run()?; + run_type + .execute(sudo) + .arg("--preserve-env=DIFFPROG") + .arg(pacdiff) + .check_run()?; } Ok(())