aboutsummaryrefslogtreecommitdiffstats
path: root/pylintrc
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2012-12-06 18:33:11 +0000
committerBryn M. Reeves <bmr@redhat.com>2012-12-06 18:33:11 +0000
commitccd3255fac25b982673fc0a785d4be4892b3f141 (patch)
tree575231a845d17e785cf2413ad028c9918db725fe /pylintrc
parentaab9f1f06304a03190787bbb8ef1f7e2871a8572 (diff)
downloadsos-ccd3255fac25b982673fc0a785d4be4892b3f141.tar.gz
Handle non-readable files better in doCopyFileOrDir
Currently a non-readable file causes an exception and resulting error logging as the path is passed blindly to archive.add_file(). There are legitimate reasons why directories colleceted by sos may contain files not readable by root, e.g. in sysfs where there are numerous write-only trigger files. Check the permissions via os.stat() before reading the file and substitute unreadable files with the empty string.
Diffstat (limited to 'pylintrc')
0 files changed, 0 insertions, 0 deletions