diff options
author | Will Dietz <w@wdtz.org> | 2022-01-29 16:23:35 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2022-01-29 16:32:27 -0600 |
commit | a0357abda743496b6731fe1ff63c6be49e03f56f (patch) | |
tree | a7440743ece785988087de8e6b7aaceb357140ce /src | |
parent | 4bf6af7b555033de5c1d6851edb60a91940d43c3 (diff) |
canonPath: fix missing slash when resolving links
Fixes #6017
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/util.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |