From 236c16fb1fa6758230f17781a8c1d243c2cf2fb7 Mon Sep 17 00:00:00 2001 From: emanuel Date: Mon, 17 Jan 2022 13:22:29 +0000 Subject: [PATCH] Add O_CREAT flag to shm open in mk_cam --- src/cam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cam.c b/src/cam.c index d2a2eb3..92f4387 100644 --- a/src/cam.c +++ b/src/cam.c @@ -94,7 +94,7 @@ static int mk_cam(facilities_t* facilities, uint8_t *cam_oer, uint32_t *cam_len) int rv = 0; int shm_fd, shm_valid = 0; - shm_fd = shm_open("it2s-bluetooth-decoded", O_RDONLY, 0666); + shm_fd = shm_open("it2s-bluetooth-decoded", O_CREAT | O_RDONLY, 0666); if(shm_fd == -1) syslog_err("[facilities] failed to open CAN shared memory\n");