fix group permissions on send_fifo

This commit is contained in:
2024-05-12 17:48:55 +01:00
parent 8a4fce37e4
commit 4650fbc7c7
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
#include "djumbai_enqueue.h"
int main() {
printf("RUNNING AS UID: %d, EUID %d, GID %d, and EGID %d\n",getuid(),geteuid(),getgid(),getegid());
const char *message_queue_path =
"/djumbai/fifos/message_queue";

View File

@@ -26,7 +26,7 @@ int main() {
}
// Open the FIFO for reading
if (mkfifo(send_fifo_path, 0600) == -1) {
if (mkfifo(send_fifo_path, 0620) == -1) {
perror("mkfifo");
exit(EXIT_FAILURE);
}