fix receiver uid

This commit is contained in:
Afonso Franco 2024-05-12 23:44:19 +01:00
parent f372af3cc3
commit d482e0647f
Signed by: afonso
SSH key fingerprint: SHA256:PQTRDHPH3yALEGtHXnXBp3Orfcn21pK20t0tS1kHg54
3 changed files with 4 additions and 4 deletions

View file

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