From e270fe60ede9204650e981453c9ca2d94803ba36 Mon Sep 17 00:00:00 2001 From: ed Date: Sun, 7 Sep 2025 09:02:43 +0000 Subject: [PATCH] fix uds perms with rm-sck --- copyparty/tcpsrv.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/copyparty/tcpsrv.py b/copyparty/tcpsrv.py index b29b75f7..6d294336 100644 --- a/copyparty/tcpsrv.py +++ b/copyparty/tcpsrv.py @@ -305,6 +305,10 @@ class TcpSrv(object): if os.path.exists(ip): os.unlink(ip) srv.bind(ip) + if uds_gid != -1: + os.chown(ip, -1, uds_gid) + if uds_perm != -1: + os.chmod(ip, uds_perm) else: tf = "%s.%d" % (ip, os.getpid()) if os.path.exists(tf):