From 95d78767fc3a62f6d16e10f88e8e3dc06871faf0 Mon Sep 17 00:00:00 2001 From: petrucci4prez Date: Fri, 9 Jun 2017 03:39:19 -0400 Subject: [PATCH] fix permissions on pipe --- listeners.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/listeners.py b/listeners.py index 80c79ab..cd8432b 100644 --- a/listeners.py +++ b/listeners.py @@ -154,12 +154,14 @@ class PipeListener(ExceptionThread): pipeMode = 0o0777 if not os.path.exists(self._path): - os.mkfifo(self._path, mode=pipeMode) + os.mkfifo(self._path) + os.chmod(self._path, pipeMode) else: st_mode = os.stat(self._path).st_mode if not stat.S_ISFIFO(st_mode): os.remove(self._path) - os.mkfifo(self._path, mode=pipeMode) + os.mkfifo(self._path) + os.chmod(self._path, pipeMode) elif st_mode % 0o10000 != pipeMode: os.chmod(self._path, pipeMode)