From 7ad4de6dc789775d613ff28f67c99c48d350cb6b Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 16 Jul 2016 18:45:25 +1200 Subject: Add call to chmod back This should not have been removed. There is a subtlety of mkfifo to note; it is affected by umask while chmod isn't. Thus, the call to chmod directly is required to ensure the desired mode is set on the fifo. --- brightnessd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/brightnessd.c b/brightnessd.c index 8434cfe..b703adb 100644 --- a/brightnessd.c +++ b/brightnessd.c @@ -54,6 +54,7 @@ int main(int argc, char **argv) // Open a FIFO remove(FIFO_PATH); mkfifo(FIFO_PATH, 0666); + chmod(FIFO_PATH, 0666); // FIXME : check return val int fifo = open(FIFO_PATH, O_RDWR); -- cgit v1.1