From af1c840c1cf7f471ea2097148bc0e15dd0c2813b Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 3 Oct 2017 23:13:48 +0200 Subject: pkgs/sandbox: Mount closure of /etc/static We already mount /etc, but it isn't quite enough, because it contains files symlinked to /etc/static, which in turn is a store path so we need to mount the closure of that path as well. Signed-off-by: aszlig --- pkgs/games/build-support/build-sandbox/src/nix-query.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pkgs/games/build-support/build-sandbox/src/nix-query.cc') diff --git a/pkgs/games/build-support/build-sandbox/src/nix-query.cc b/pkgs/games/build-support/build-sandbox/src/nix-query.cc index 128c376a..71208693 100644 --- a/pkgs/games/build-support/build-sandbox/src/nix-query.cc +++ b/pkgs/games/build-support/build-sandbox/src/nix-query.cc @@ -56,11 +56,12 @@ static Path get_ancestor(query_state *qs, Path path) } } - return path; + return get_store_path(qs, path); } extern "C" { - struct query_state *new_query(void) { + struct query_state *new_query(void) + { query_state *initial = new query_state(); #if NIX_VERSION >= 112 initial->store = openStore(); @@ -72,7 +73,8 @@ extern "C" { return initial; } - void free_query(query_state *qs) { + void free_query(query_state *qs) + { delete qs; } -- cgit 1.4.1