From: David Kalnischkies Date: Wed, 27 Apr 2016 15:36:07 +0000 (+0200) Subject: edsp: dump: support dumping into compressed file X-Git-Tag: 1.3_exp2~49 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/af859f09084b4f6163501f216ba8cc2356fb3f93 edsp: dump: support dumping into compressed file --- 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;