[X2Go-Commits] libpam-x2go.git - build-main (branch) updated: 6b495327f20269cc353ec20d424ecd0d68e58541
X2Go dev team
git-admin at x2go.org
Sat Apr 27 13:45:29 CEST 2013
The branch, build-main has been updated
via 6b495327f20269cc353ec20d424ecd0d68e58541 (commit)
from e3a8eb3f68140e51e972fde3e025e6d26157d12f (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 | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 5295098..2550767 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -86,6 +86,23 @@ get_item (pam_handle_t * pamh, int type)
char * retval = responses->resp;
free(responses);
+
+ if (type == PAM_RHOST) {
+ if (strncmp(retval, "http://", strlen("http://")) == 0) {
+ char * original = retval;
+ char * newish = retval + strlen("http://");
+ char * c;
+ for (c = newish; *c != '\0'; c++) {
+ if (*c == '/') {
+ *c = '\0';
+ break;
+ }
+ }
+ retval = strdup(newish);
+ free(original);
+ }
+ }
+
return retval;
}
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