X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/01152444ba96051fa0ca90b08dcbb8fec9d81745..cb7fce24492ff6e0b7df0f33e2ac47970b4281dd:/cmdline/apt-helper.cc diff --git a/cmdline/apt-helper.cc b/cmdline/apt-helper.cc index e8b16c4e5..a519f3042 100644 --- a/cmdline/apt-helper.cc +++ b/cmdline/apt-helper.cc @@ -114,7 +114,8 @@ static bool DoCatFile(CommandLine &CmdL) /*{{{*/ char buf[4096]; unsigned long long read; - out.OpenDescriptor(STDOUT_FILENO, FileFd::WriteOnly); + if (out.OpenDescriptor(STDOUT_FILENO, FileFd::WriteOnly) == false) + return false; if (CmdL.FileSize() <= 1) return _error->Error("Must specify at least one file name");