su: Change the current directory to the user's home on login
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-04-11 22:15:46 +02:00
parent 2a967f4b8b
commit 3a45f4af53
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -89,5 +89,7 @@ int main(int argc, char** argv)
setgid(entry->pw_gid);
setuid(entry->pw_uid);
chdir(entry->pw_dir);
execl(entry->pw_shell, entry->pw_shell, NULL);
}