[TS] TP3 - forgot to change paths
This commit is contained in:
parent
8a1db028fb
commit
a81b245852
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue