diff options
| -rw-r--r-- | apt-private/private-history.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-private/private-history.cc b/apt-private/private-history.cc index 5057ed0d6..05c908471 100644 --- a/apt-private/private-history.cc +++ b/apt-private/private-history.cc @@ -205,6 +205,9 @@ bool DoHistoryList(CommandLine &Cmd) { HistoryBuffer buf = {}; + if (Cmd.FileSize() != 1) + return _error->Error("This command does not support any arguments"); + if (not ParseLogDir(buf)) return _error->Error(_("Could not read: %s"), _config->FindFile("Dir::Log::History").data()); |
