diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-21 18:21:25 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-04-21 18:21:25 +0200 |
commit | 21ef1670b3cb592ae504cca4e412082746affcfe (patch) | |
tree | 278d3c439a909b9bd7834cfb2d6464c7a95cbc04 /src/libstore/store-api.cc | |
parent | 7d14f5c3310f5380ca14391e79bd1fc214d5f5c9 (diff) |
Fix test failures
Diffstat (limited to 'src/libstore/store-api.cc')
-rw-r--r-- | src/libstore/store-api.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 9870e36b5..14932f9b0 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -17,6 +17,7 @@ bool isInStore(const Path & path) bool isStorePath(const Path & path) { return isInStore(path) + && path.size() >= settings.nixStore.size() + 1 + storePathHashLen && path.find('/', settings.nixStore.size() + 1) == Path::npos; } |