From a81b2458525e9cad7ac6d6499890a1e4c2bc0e67 Mon Sep 17 00:00:00 2001 From: Lucas Verdelho Date: Sun, 12 May 2024 21:50:21 +0100 Subject: [PATCH] [TS] TP3 - forgot to change paths --- test/message_cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/message_cli.c b/test/message_cli.c index bf69a67..6fedbf0 100644 --- a/test/message_cli.c +++ b/test/message_cli.c @@ -20,8 +20,8 @@ void displayHeader() { void displayAllMessages(uid_t userID) { char userDir[256]; - // sprintf(userDir, "/djumbai/user/%d/mailbox", userID); // Construct user directory path - sprintf(userDir, "/mnt/e/Desktop/CSI/djumbai/test/%d/mailbox", userID); // TODO MUDAR ESTE PATH + sprintf(userDir, "/djumbai/user/%d/mailbox", userID); // Construct user directory path + // sprintf(userDir, "/mnt/e/Desktop/CSI/djumbai/test/%d/mailbox", userID); // TODO MUDAR ESTE PATH DIR *dir; struct dirent *entry; @@ -150,7 +150,7 @@ int main() { uid_t senderID = atoi(sender); char userDir[256]; - sprintf(userDir, "/mnt/e/Desktop/CSI/djumbai/test/%d/mailbox/%d", getuid(), senderID); // TODO MUDAR PATH AQUI + sprintf(userDir, "/djumbai/user/%d/mailbox/%d", getuid(), senderID); displayMessagesFromSender(userDir); break;