diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2015-01-26 14:57:01 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2015-07-08 17:05:21 +0100 |
commit | fb1b4a8b6793611ed91f43f6d3553351c704f50f (patch) | |
tree | 3b2856d082ea739cdc6e86f56ca5c043443a5805 /debian/copyright | |
parent | f4218ff5bab93908ca3d0804c9d837bdfa57f654 (diff) | |
download | sos-fb1b4a8b6793611ed91f43f6d3553351c704f50f.tar.gz |
[plugin] handle ELOOP in _copy_dir()
A problem with systemd's management of the binfmt_misc automount
point in Atomic environments causes attempts to access this path to
fail with ELOOP:
>>> import os
>>> os.listdir("/host/proc/sys/fs/binfmt_misc/")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: [Errno 2] No such file or directory: '/host/proc/sys/fs/binfmt_misc/'
For reasons that are not yet clear this causes the entire sos
process to immediately terminate.
For now avoid the problem by enclosing the problem os.listdir in
a try/except block that explicitly handles the one errno value
implicated here.
Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'debian/copyright')
0 files changed, 0 insertions, 0 deletions