summaryrefslogtreecommitdiffstats
path: root/sesman/env.c
diff options
context:
space:
mode:
authorjsorg71 <jsorg71>2006-08-22 06:27:04 +0000
committerjsorg71 <jsorg71>2006-08-22 06:27:04 +0000
commit1a00bf6b85464f539c111f485b9160ebd962b1df (patch)
treef05315c8e9c9eedd31c290a1b11c106965131f08 /sesman/env.c
parent1311fcb6bd02c74f36a687d521db5da1c25e3a2e (diff)
downloadxrdp-proprietary-1a00bf6b85464f539c111f485b9160ebd962b1df.tar.gz
xrdp-proprietary-1a00bf6b85464f539c111f485b9160ebd962b1df.zip
check return value of g_initgroups
Diffstat (limited to 'sesman/env.c')
-rw-r--r--sesman/env.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sesman/env.c b/sesman/env.c
index beb62dc5..9c06f524 100644
--- a/sesman/env.c
+++ b/sesman/env.c
@@ -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;