mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Resolve symlinks in a few more places
Fixes #9882.
(cherry picked from commit b36ff47e7c
)
This commit is contained in:
parent
1b2b240f22
commit
5ad5b4447c
3 changed files with 6 additions and 3 deletions
|
@ -2241,7 +2241,7 @@ static void addPath(
|
|||
});
|
||||
|
||||
if (!expectedHash || !state.store->isValidPath(*expectedStorePath)) {
|
||||
auto dstPath = fetchToStore(*state.store, path, name, method, filter.get(), state.repair);
|
||||
auto dstPath = fetchToStore(*state.store, path.resolveSymlinks(), name, method, filter.get(), state.repair);
|
||||
if (expectedHash && expectedStorePath != dstPath)
|
||||
state.debugThrowLastTrace(Error("store path mismatch in (possibly filtered) path added from '%s'", path));
|
||||
state.allowAndSetStorePathString(dstPath, v);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue