client
client copied to clipboard
Patch os.open instead of builtins.open and pathlib
To fully support all cases, it would make more sense to rewrite our patching logic in install_hooks
to patch the more low-level os.open
function, which maps directly to syscalls and is actually used by both builtins.open
and pathlib.