]> git.ipfire.org Git - thirdparty/shairport-sync.git/commitdiff
Open metadata and audio pipes with 666 permissions.
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 27 Jul 2020 08:40:05 +0000 (09:40 +0100)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 27 Jul 2020 08:40:05 +0000 (09:40 +0100)
audio_pipe.c
rtsp.c

index 6dedc464b9b34d45d07d39266fbefbf4c26875fa..45e0f06008b43ec282517822d851a91c5983ecd3 100644 (file)
@@ -121,7 +121,7 @@ static int init(int argc, char **argv) {
 
   // here, create the pipe
   mode_t oldumask = umask(000);
-  if (mkfifo(pipename, 0644) && errno != EEXIST)
+  if (mkfifo(pipename, 0666) && errno != EEXIST)
     die("Could not create audio pipe \"%s\"", pipename);
   umask(oldumask);
 
diff --git a/rtsp.c b/rtsp.c
index 2febacd08b9628dfc0b2789b463831cb054a358b..1f1cb9f9e5d0049f8f50354b8c1861dc4cbcd547 100644 (file)
--- a/rtsp.c
+++ b/rtsp.c
@@ -1572,7 +1572,7 @@ void *metadata_hub_thread_function(__attribute__((unused)) void *ignore) {
   snprintf(path, pl + 1, "%s", config.metadata_pipename);
 
   mode_t oldumask = umask(000);
-  if (mkfifo(path, 0644) && errno != EEXIST)
+  if (mkfifo(path, 0666) && errno != EEXIST)
     die("Could not create metadata pipe \"%s\".", path);
   umask(oldumask);
   debug(1, "metadata pipe name is \"%s\".", path);