From ce82577d2f84e611bf4338ba58ea02167c554a0e Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 25 Oct 2025 16:12:33 +0200 Subject: [PATCH] Actually fix stripping of " (deleted)" suffix Commit 7b59ae0d82d (Unbreak hack to strip " (deleted)" suffix from executable path, 2025-10-02) accidentally droped the "!". --- src/env/config_paths.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/config_paths.rs b/src/env/config_paths.rs index 519044352..7b3ebcbf0 100644 --- a/src/env/config_paths.rs +++ b/src/env/config_paths.rs @@ -162,7 +162,7 @@ fn compute_fish_path() -> PathBuf { // When /proc/self/exe points to a file that was deleted (or overwritten on update!) // then linux adds a " (deleted)" suffix. // If that's not a valid path, let's remove that awkward suffix. - if path.as_os_str().as_bytes().ends_with(b" (deleted)") { + if !path.as_os_str().as_bytes().ends_with(b" (deleted)") { return path; }