fix group permissions on send_fifo

This commit is contained in:
Afonso Franco 2024-05-12 17:48:55 +01:00
parent 8a4fce37e4
commit 4650fbc7c7
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
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);
}