aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-22 11:39:10 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-10-22 11:39:10 +0200
commitc0861838432ea9d8e5ea5750aadfbc59ebd6f3b4 (patch)
treef66c36ef3a6d4edea3568ebbf68ed1d2ccba67fa
parent4f4a14453ae8dbfc24a1e580aa695165e9d81f0a (diff)
For auto roots, show the intermediate link
I.e. "nix-store -q --roots" will now show (for example) /home/eelco/Dev/nixpkgs/result rather than /nix/var/nix/gcroots/auto/53222qsppi12s2hkap8dm2lg8xhhyk6v
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 37ca6be4b..f32329960 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);
}
}
}