[TS] TP3 - forgot to change paths

This commit is contained in:
Lucas Verdelho 2024-05-12 21:50:21 +01:00
parent 8a1db028fb
commit a81b245852

View file

@ -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;