check return value of g_initgroups

This commit is contained in:
jsorg71 2006-08-22 06:27:04 +00:00
parent 1311fcb6bd
commit 1a00bf6b85

View File

@ -73,8 +73,10 @@ env_set_user(char* username, char* passwd_file, int display)
if (error == 0)
{
error = g_setgid(pw_gid);
g_initgroups(username,pw_gid);
if (error == 0)
{
error = g_initgroups(username, pw_gid);
}
if (error == 0)
{
uid = pw_uid;