From a0357abda743496b6731fe1ff63c6be49e03f56f Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sat, 29 Jan 2022 16:23:35 -0600 Subject: canonPath: fix missing slash when resolving links Fixes #6017 --- src/libutil/util.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 1f1f2c861..4cd46c84c 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -147,7 +147,7 @@ Path canonPath(PathView path, bool resolveSymlinks) path = {}; } else { s += path.substr(0, slash); - path = path.substr(slash + 1); + path = path.substr(slash); } /* If s points to a symlink, resolve it and continue from there */ -- cgit v1.2.3