aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/plugins/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sos/plugins/__init__.py b/sos/plugins/__init__.py
index d6915cc3..03b060db 100644
--- a/sos/plugins/__init__.py
+++ b/sos/plugins/__init__.py
@@ -431,7 +431,7 @@ class Plugin(object):
self._copy_symlink(srcpath)
return
else:
- if stat.S_ISDIR(st.st_mode):
+ if stat.S_ISDIR(st.st_mode) and os.access(srcpath, os.R_OK):
self._copy_dir(srcpath)
return