1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 03:09:35 +01:00

canonPath: fix missing slash when resolving links

Fixes #6017

(cherry picked from commit a0357abda7)
This commit is contained in:
Will Dietz 2022-01-29 16:23:35 -06:00 committed by Anders Kaseorg
parent a1cd7e5860
commit 32a7724c22

View file

@ -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 */