SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,20 @@
Index: jupyter_client/connect.py
--- jupyter_client/connect.py.orig
+++ jupyter_client/connect.py
@@ -18,6 +18,7 @@ import socket
import stat
import tempfile
import warnings
+import sys
from getpass import getpass
from contextlib import contextmanager
@@ -141,7 +142,7 @@ def write_connection_file(fname=None, shell_port=0, io
with secure_write(fname) as f:
f.write(json.dumps(cfg, indent=2))
- if hasattr(stat, 'S_ISVTX'):
+ if hasattr(stat, 'S_ISVTX') and not sys.platform.startswith('openbsd'):
# set the sticky bit on the file and its parent directory
# to avoid periodic cleanup
paths = [fname]