[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 1337c11c623acf4a3a967985e29f03f0c66c2812

X2Go dev team git-admin at x2go.org
Sat Apr 27 13:45:34 CEST 2013


The branch, build-main has been updated
       via  1337c11c623acf4a3a967985e29f03f0c66c2812 (commit)
      from  d2358d6e2b75eb26f7dd61172a77331bfc5ea5f8 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 src/pam-freerdp.c |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 17b5996..fde3202 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -441,11 +441,6 @@ pid_t session_pid = 0;
 PAM_EXTERN int
 pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char ** argv)
 {
-	if (session_pid != 0) {
-		kill(session_pid, SIGKILL);
-		session_pid = 0;
-	}
-
 	char * username = NULL;
 	char * password = NULL;
 	char * ruser = NULL;
@@ -467,6 +462,10 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char ** argv
 		goto done;
 	}
 
+	if (session_pid != 0) {
+		unpriveleged_kill(pwdent);
+	}
+
 	int sessionready[2];
 	if (pipe(sessionready) != 0) {
 		retval = PAM_SYSTEM_ERR;


hooks/post-receive
-- 
libpam-x2go.git (Remote login session via X2Go (PAM module))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).




More information about the x2go-commits mailing list