summaryrefslogtreecommitdiffstats
path: root/src/cli/CLI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/CLI.cpp')
-rw-r--r--src/cli/CLI.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli/CLI.cpp b/src/cli/CLI.cpp
index 59c145f5..527d5de9 100644
--- a/src/cli/CLI.cpp
+++ b/src/cli/CLI.cpp
@@ -38,7 +38,11 @@ static char *localize_crash_time(const char *timestr)
static crash_data_t *FillCrashInfo(const char *dump_dir_name)
{
+ int sv_logmode = logmode;
+ logmode = 0; /* suppress EPERM/EACCES errors in opendir */
struct dump_dir *dd = dd_opendir(dump_dir_name, /*flags:*/ DD_OPEN_READONLY);
+ logmode = sv_logmode;
+
if (!dd)
return NULL;