mirror of
https://github.com/9001/copyparty.git
synced 2025-10-04 18:29:31 +02:00
fix uds perms with rm-sck
This commit is contained in:
parent
ab56238249
commit
e270fe60ed
1 changed files with 4 additions and 0 deletions
|
@ -305,6 +305,10 @@ class TcpSrv(object):
|
||||||
if os.path.exists(ip):
|
if os.path.exists(ip):
|
||||||
os.unlink(ip)
|
os.unlink(ip)
|
||||||
srv.bind(ip)
|
srv.bind(ip)
|
||||||
|
if uds_gid != -1:
|
||||||
|
os.chown(ip, -1, uds_gid)
|
||||||
|
if uds_perm != -1:
|
||||||
|
os.chmod(ip, uds_perm)
|
||||||
else:
|
else:
|
||||||
tf = "%s.%d" % (ip, os.getpid())
|
tf = "%s.%d" % (ip, os.getpid())
|
||||||
if os.path.exists(tf):
|
if os.path.exists(tf):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue