diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-04-27 17:36:07 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-05-20 14:18:36 +0200 |
commit | af859f09084b4f6163501f216ba8cc2356fb3f93 (patch) | |
tree | 52b7ffa7ea736a1f222092b6081b6f7093c75c83 | |
parent | 4e92b11649292714082754920d5b28477414cd5a (diff) |
edsp: dump: support dumping into compressed file
-rw-r--r-- | cmdline/apt-dump-solver.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/apt-dump-solver.cc b/cmdline/apt-dump-solver.cc index cb7233059..0de248e75 100644 --- a/cmdline/apt-dump-solver.cc +++ b/cmdline/apt-dump-solver.cc @@ -61,7 +61,7 @@ int main(int argc,const char *argv[]) /*{{{*/ RemoveFile(argv[0], filename); FileFd input, output; if (input.OpenDescriptor(STDIN_FILENO, FileFd::ReadOnly) == false || - output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, 0600) == false || + output.Open(filename, FileFd::WriteOnly | FileFd::Create | FileFd::Exclusive, FileFd::Extension, 0600) == false || CopyFile(input, output) == false || input.Close() == false || output.Close() == false) { std::ostringstream out; |