From 31439b22c80d83548f48044d473dfaac542051ad Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Mon, 22 Mar 2021 21:27:14 +0000 Subject: [PATCH] revert mode flags on opening the shared memory --- nqptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nqptp.c b/nqptp.c index 8aea072..c50458d 100644 --- 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); } -- 2.47.3