From 85bd7adb19764abedb6ef072c17a16ebd53a2b1c Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Thu, 30 Aug 2012 14:52:01 -0500 Subject: Removing setgroups as it doesn't seem to be working --- src/pam-freerdp.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src') diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c index 88286c9..24a55d0 100644 --- a/src/pam-freerdp.c +++ b/src/pam-freerdp.c @@ -239,10 +239,6 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv) _exit(EXIT_FAILURE); } - if (setgroups(1, &pwdent->pw_gid) != 0) { - _exit(EXIT_FAILURE); - } - if (clearenv() != 0) { _exit(EXIT_FAILURE); } @@ -314,11 +310,6 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse return EXIT_FAILURE; } - if (setgroups(1, &pwdent->pw_gid) != 0) { - /* Don't need to clean up yet */ - return EXIT_FAILURE; - } - if (clearenv() != 0) { /* Don't need to clean up yet */ return EXIT_FAILURE; @@ -526,10 +517,6 @@ pam_sm_close_session (pam_handle_t *pamh, int flags, int argc, const char **argv _exit(EXIT_FAILURE); } - if (setgroups(1, &pwdent->pw_gid) != 0) { - _exit(EXIT_FAILURE); - } - if (clearenv() != 0) { _exit(EXIT_FAILURE); } -- cgit v1.2.3