You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...that's because we pre emptively use os.path.islink() which might return False in case we don't have the permission to perform os.stat() against the designated path:
Instead we should just call os.readlink() directly and "continue" in case of EINVAL (meaning the path is not a link).
By swallowing AD the function may indirectly return an incomplete list of open files.
The text was updated successfully, but these errors were encountered:
...that's because we pre emptively use os.path.islink() which might return False in case we don't have the permission to perform os.stat() against the designated path:
psutil/psutil/_pslinux.py
Line 1035 in ad2624a
Instead we should just call os.readlink() directly and "continue" in case of EINVAL (meaning the path is not a link).
By swallowing AD the function may indirectly return an incomplete list of open files.
The text was updated successfully, but these errors were encountered: