diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-03-01T13·41+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-03-01T13·41+0100 |
commit | e321551d540df340fadaa1b088d9e5225193c87a (patch) | |
tree | 4a12fcae1ccf5b152bf612c4a6733d75c26efe2f /src | |
parent | c4a40949d945b4a3be85ad68b8cfb449843f34a6 (diff) |
Fix assertion failure in nix-store --export
Fixes #1173.
Diffstat (limited to 'src')
-rw-r--r-- | src/nix-store/nix-store.cc | 3 |
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); } |