We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742d5b5 commit 4fd050eCopy full SHA for 4fd050e
1 file changed
Lib/pdb.py
@@ -75,6 +75,7 @@
75
import code
76
import glob
77
import json
78
+import stat
79
import token
80
import types
81
import atexit
@@ -3418,6 +3419,8 @@ def attach(pid, commands=()):
3418
3419
)
3420
3421
connect_script.close()
3422
+ orig_mode = os.stat(connect_script.name).st_mode
3423
+ os.chmod(connect_script.name, orig_mode | stat.S_IROTH | stat.S_IRGRP)
3424
sys.remote_exec(pid, connect_script.name)
3425
3426
# TODO Add a timeout? Or don't bother since the user can ^C?
0 commit comments