From ef66510e59f510732226977fcda82ac221e8736d Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 3 Feb 2022 18:39:30 +0100 Subject: [PATCH] comment --- lab1/login_linux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lab1/login_linux.c b/lab1/login_linux.c index b584c5f..c73a1f8 100755 --- a/lab1/login_linux.c +++ b/lab1/login_linux.c @@ -155,10 +155,9 @@ int main(int argc, char *argv[]) { /* check UID, see setuid(2) */ - if (setuid(passwddata->uid) < 0) { + if (setuid(passwddata->uid) < 0) { //replace this with the ID of the user running the program if you don't have sudo rights perror("Error"); exit(EXIT_FAILURE); - // TODO kommer alltid bara hit } /* start a shell, use execve(2) */ if (execve("/bin/bash",NULL,NULL) < 0) {