Skip to content

Commit 50e59ae

Browse files
committed
actually set sticky bit
use new_permissions, not old!
1 parent d6e6bc9 commit 50e59ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_client/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def write_connection_file(fname=None, shell_port=0, iopub_port=0, stdin_port=0,
148148
new_permissions = permissions | stat.S_ISVTX
149149
if new_permissions != permissions:
150150
try:
151-
os.chmod(path, permissions)
151+
os.chmod(path, new_permissions)
152152
except OSError as e:
153153
# failed to set sticky bit,
154154
# probably not a big deal

0 commit comments

Comments
 (0)