From: Ian Jackson Date: Mon, 3 May 2021 10:21:34 +0000 (+0100) Subject: config: Only chdir in server (!), fix sense (!) X-Git-Tag: otter-0.6.0~458 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=98485bdbfbf832113f38514a2d78532e7c5f3316;p=otter.git config: Only chdir in server (!), fix sense (!) Signed-off-by: Ian Jackson --- diff --git a/src/config.rs b/src/config.rs index 15d9cf05..c8e358da 100644 --- a/src/config.rs +++ b/src/config.rs @@ -87,8 +87,8 @@ impl ResolveContext { fn resolve(self, cd: &str, input: &str) -> String { use ResolveContext::*; match (self, input.as_bytes()) { - (ForServerReal, &[b'/',..]) | (Other, _) => input.to_owned(), - (ForServerReal, _) => format!("{}/{}", cd, input), + (Other, &[b'/',..]) | (ForServerReal, _) => input.to_owned(), + (Other, _) => format!("{}/{}", cd, input), } } }