[X2Go-Commits] lightdm-remote-session-x2go.git - x2gosessiontype (branch) updated: 402133a40e196f9acb64b989e3e42039f073ba52

X2Go dev team git-admin at x2go.org
Wed Apr 24 17:54:41 CEST 2013


The branch, x2gosessiontype has been updated
       via  402133a40e196f9acb64b989e3e42039f073ba52 (commit)
      from  e610f6f207135dd5513a2c3120bf0ae391db2910 (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:
 socket-sucker.c |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/socket-sucker.c b/socket-sucker.c
index 0b1ee27..b5fb543 100644
--- a/socket-sucker.c
+++ b/socket-sucker.c
@@ -17,11 +17,16 @@ main (int argc, char * argv[])
 
 	bzero((char *)&serv_addr, sizeof(serv_addr));
 
+	const char * home = getenv("HOME");
+	if (home == NULL) {
+		return -1;
+	}
+
 	serv_addr.sun_family = AF_UNIX;
-	strcpy(serv_addr.sun_path, "/home/ted/.freerdp-socket");
+	snprintf(serv_addr.sun_path, sizeof(serv_addr.sun_path), "%s/%s", home, ".freerdp-socket");
 	servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
 
-	if ((socket_fd = socket(AF_UNIX, SOCK_STREAM,0)) < 0) {
+	if ((socket_fd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
 		return -1;
 	}
 


hooks/post-receive
-- 
lightdm-remote-session-x2go.git (X2Go-based remote login session support for LightDM)

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 "lightdm-remote-session-x2go.git" (X2Go-based remote login session support for LightDM).




More information about the x2go-commits mailing list