[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 6308a3d8b0356fd523d5162b04abd99bb4abb283
X2Go dev team
git-admin at x2go.org
Sat Apr 27 13:45:34 CEST 2013
The branch, build-main has been updated
via 6308a3d8b0356fd523d5162b04abd99bb4abb283 (commit)
from ef23e22300f10da9c1bb86e8148516994ae49033 (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, 9 insertions(+)
The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 90686a9..f097ae2 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -247,6 +247,10 @@ pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv)
_exit(EXIT_FAILURE);
}
+ if (chdir(pwdent->pw_dir) != 0) {
+ _exit(EXIT_FAILURE);
+ }
+
setenv("HOME", pwdent->pw_dir, 1);
execvp(args[0], args);
@@ -320,6 +324,11 @@ session_socket_handler (struct passwd * pwdent, int readypipe, const char * ruse
return EXIT_FAILURE;
}
+ if (chdir(pwdent->pw_dir) != 0) {
+ /* Don't need to clean up yet */
+ return EXIT_FAILURE;
+ }
+
/* Build this up as a buffer so we can just write it and see that
very, very clearly */
buffer_len += strlen(ruser) + 1; /* Add one for the space */
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