* libmisc/setugid.c: Add brackets.
This commit is contained in:
parent
eb18ee624f
commit
e4e3bd5175
@ -1,3 +1,7 @@
|
||||
2008-07-11 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* libmisc/setugid.c: Add brackets.
|
||||
|
||||
2008-06-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||
|
||||
* libmisc/env.c: Avoid implicit conversion of pointers / chars to
|
||||
|
@ -106,8 +106,9 @@ int change_uid (const struct passwd *info)
|
||||
|
||||
int setup_uid_gid (const struct passwd *info, bool is_console)
|
||||
{
|
||||
if (setup_groups (info) < 0)
|
||||
if (setup_groups (info) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef HAVE_INITGROUPS
|
||||
if (is_console) {
|
||||
@ -119,8 +120,10 @@ int setup_uid_gid (const struct passwd *info, bool is_console)
|
||||
}
|
||||
#endif /* HAVE_INITGROUPS */
|
||||
|
||||
if (change_uid (info) < 0)
|
||||
if (change_uid (info) < 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user