Fix assertion failure in nix-store --export

Fixes #1173.
This commit is contained in:
Eelco Dolstra 2017-03-01 14:41:54 +01:00
parent c4a40949d9
commit e321551d54
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -708,6 +708,9 @@ static void opExport(Strings opFlags, Strings opArgs)
for (auto & i : opFlags) for (auto & i : opFlags)
throw UsageError(format("unknown flag %1%") % i); throw UsageError(format("unknown flag %1%") % i);
for (auto & i : opArgs)
i = store->followLinksToStorePath(i);
FdSink sink(STDOUT_FILENO); FdSink sink(STDOUT_FILENO);
store->exportPaths(opArgs, sink); store->exportPaths(opArgs, sink);
} }