summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-05-19 17:11:15 +0000
committerJulian Andres Klode <jak@debian.org>2025-05-19 17:11:15 +0000
commit6025ea158c7635d7f990e63dbf7c9e309fc188ff (patch)
tree7fcab49925442011d731acbbfd90934ed5712f09 /apt-private
parent5901fb11d8df5f8b8578ea3032d0e5a953c8a429 (diff)
parent1eb729ef1c795f6b5944dd217994f8d8279672bc (diff)
Merge branch 'cherry' into 'main'
Various cherry-picks See merge request apt-team/apt!480
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/private-cmndline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-private/private-cmndline.cc b/apt-private/private-cmndline.cc
index 67a34a2c7..e16aa7280 100644
--- a/apt-private/private-cmndline.cc
+++ b/apt-private/private-cmndline.cc
@@ -622,7 +622,7 @@ unsigned short DispatchCommandLine(CommandLine &CmdL, std::vector<CommandLine::D
_error->DumpErrors();
else
_error->DumpErrors(GlobalError::NOTICE);
- if (returned == false)
+ if (returned == false || std::cout.bad() || std::cerr.bad() || std::clog.bad())
return 100;
return Errors == true ? 100 : 0;
}