]> git.ipfire.org Git - thirdparty/nqptp.git/commitdiff
revert mode flags on opening the shared memory
authorMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 22 Mar 2021 21:27:14 +0000 (21:27 +0000)
committerMike Brady <4265913+mikebrady@users.noreply.github.com>
Mon, 22 Mar 2021 21:27:14 +0000 (21:27 +0000)
nqptp.c

diff --git a/nqptp.c b/nqptp.c
index 8aea0726e310373818c33862c953544f33ac424b..c50458db85d911a4f044fd71c8bbef555582746c 100644 (file)
--- a/nqptp.c
+++ b/nqptp.c
@@ -583,7 +583,7 @@ int main(void) {
   if (grp == NULL) {
     inform("the group \"nqptp\" was not found, will try \"root\" group instead.");
   }
-  shm_fd = shm_open(STORAGE_ID, O_RDWR | O_CREAT, 0660);
+  shm_fd = shm_open(STORAGE_ID, O_RDWR | O_CREAT, 0666);
   if (shm_fd == -1) {
     die("cannot open shared memory \"%s\".", STORAGE_ID);
   }