diff --git a/src/client/client.c b/src/client/client.c index 0c31784..c89d44a 100644 --- a/src/client/client.c +++ b/src/client/client.c @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) { } } - int receiverUidInt = atoi("1003"); + int receiverUidInt = atoi(receiverUid); send_message(receiverUidInt,groupFlag); diff --git a/src/djumbai_dequeue/djumbai_dequeue.c b/src/djumbai_dequeue/djumbai_dequeue.c index 174d3fc..97798f8 100644 --- a/src/djumbai_dequeue/djumbai_dequeue.c +++ b/src/djumbai_dequeue/djumbai_dequeue.c @@ -20,7 +20,7 @@ int main() { } // Open the FIFO for reading - if (mkfifo(message_queue_path, 0420) == -1) { + if (mkfifo(message_queue_path, 0660) == -1) { perror("mkfifo"); exit(EXIT_FAILURE); } @@ -32,7 +32,7 @@ int main() { printf("FIFO '%s' does not exist. Exiting...\n", message_queue_path); return 1; } else { - perror("open"); + perror("open:"); return 1; } } diff --git a/src/djumbai_send/djumbai_send.c b/src/djumbai_send/djumbai_send.c index b898915..99b2024 100644 --- a/src/djumbai_send/djumbai_send.c +++ b/src/djumbai_send/djumbai_send.c @@ -97,7 +97,7 @@ int main() { exit(EXIT_FAILURE); } - struct passwd *pw = getpwuid(msg.header.receiver); + struct passwd *pw = getpwuid(msg.header.receiver); if (pw == NULL) { fprintf(stderr, "User with uid %d not found\n", msg.header.receiver); exit(EXIT_FAILURE);