set punchd socket file permissions to 0666
This commit is contained in:
parent
e8d06b5982
commit
d1b104c666
|
@ -88,6 +88,9 @@ proc main() =
|
|||
removeFile(PunchdSocket)
|
||||
let unixSocket = newAsyncSocket(AF_UNIX, SOCK_STREAM, IPPROTO_IP)
|
||||
unixSocket.bindUnix(PunchdSocket)
|
||||
setFilePermissions(PunchdSocket,
|
||||
{fpUserRead, fpUserWrite, fpGroupRead, fpGroupWrite,
|
||||
fpOthersRead, fpOthersWrite})
|
||||
unixSocket.listen()
|
||||
asyncCheck handleUsers(unixSocket)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue