Skip to content

Commit

Permalink
Fix: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Dec 20, 2024
1 parent 37e93f3 commit ddee93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ static bool drop_privileges(sds username, uid_t startup_uid) {
return false;
}
errno = 0;
if (setgroups(0, NULL) == -1 || //purge supplementary groups
if (setgroups(0, NULL) == -1 || //purge supplementary groups
initgroups(username, pwd.pw_gid) == -1 || //set new supplementary groups from target user
setgid(pwd.pw_gid) == -1 || //change primary group to group of target user
setuid(pwd.pw_uid) == -1) //change user
Expand Down

0 comments on commit ddee93d

Please sign in to comment.