about summary refs log tree commit diff
path: root/src/nix-store
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-03-01T13·41+0100
committerEelco Dolstra <edolstra@gmail.com>2017-03-01T13·41+0100
commite321551d540df340fadaa1b088d9e5225193c87a (patch)
tree4a12fcae1ccf5b152bf612c4a6733d75c26efe2f /src/nix-store
parentc4a40949d945b4a3be85ad68b8cfb449843f34a6 (diff)
Fix assertion failure in nix-store --export
Fixes #1173.
Diffstat (limited to 'src/nix-store')
-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 bd889c8515d9..868ec2f5a2d0 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);
 }