aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-01 14:41:54 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-01 14:41:54 +0100
commite321551d540df340fadaa1b088d9e5225193c87a (patch)
tree4a12fcae1ccf5b152bf612c4a6733d75c26efe2f
parentc4a40949d945b4a3be85ad68b8cfb449843f34a6 (diff)
Fix assertion failure in nix-store --export
Fixes #1173.
-rw-r--r--src/nix-store/nix-store.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc
index bd889c851..868ec2f5a 100644
--- a/src/nix-store/nix-store.cc
+++ b/src/nix-store/nix-store.cc
@@ -708,6 +708,9 @@ static void opExport(Strings opFlags, Strings opArgs)
for (auto & i : opFlags)
throw UsageError(format("unknown flag ‘%1%’") % i);
+ for (auto & i : opArgs)
+ i = store->followLinksToStorePath(i);
+
FdSink sink(STDOUT_FILENO);
store->exportPaths(opArgs, sink);
}