From fda2b732ad41129559b94f56a6c655068ed70f57 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 12 Feb 2022 21:30:12 +0100 Subject: uinput_mng: create the control FIFO dir if it does not exist --- uinput_mng | 1 + 1 file changed, 1 insertion(+) diff --git a/uinput_mng b/uinput_mng index e8e67a2..400755c 100755 --- a/uinput_mng +++ b/uinput_mng @@ -302,6 +302,7 @@ if not control_path: # create the FIFO if it does not exist yet if not os.path.exists(control_path): logger.info('Creating control FIFO: %s', control_path) + os.makedirs(os.path.dirname(control_path), exist_ok = True) os.mkfifo(control_path, mode = 0o600) else: st = os.stat(control_path) -- cgit v1.2.3