diff options
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/gc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 37ca6be4b836..f32329960c66 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -329,7 +329,7 @@ static void findRoots(StoreAPI & store, const Path & path, Roots & roots) struct stat st2 = lstat(target); if (!S_ISLNK(st2.st_mode)) return; Path target2 = readLink(target); - if (isInStore(target2)) foundRoot(store, path, target2, roots); + if (isInStore(target2)) foundRoot(store, target, target2, roots); } } } |