diff options
-rw-r--r-- | sesman/env.c | 8 | ||||
-rw-r--r-- | sesman/session.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sesman/env.c b/sesman/env.c index 5bc4e17d..625f8345 100644 --- a/sesman/env.c +++ b/sesman/env.c @@ -229,12 +229,12 @@ env_add_xauth_user(int display, char *cookie, char *file) g_file_close(fd); } - g_sprintf(xauth_str, "xauth -q -f %s add :%d . %s", file, display, cookie); + g_sprintf(xauth_str, "xauth -q -f %s add :%d . %s", + file, display, cookie); } - log_message(LOG_LEVEL_DEBUG, - "xauth command: %s", xauth_str); + log_message(LOG_LEVEL_DEBUG, "xauth command: %s", xauth_str); - if ( (dp = popen(xauth_str,"r")) == NULL ) { + if ((dp = popen(xauth_str, "r")) == NULL) { log_message(LOG_LEVEL_INFO, "xauth failed, no X security"); return 1; } diff --git a/sesman/session.c b/sesman/session.c index 81276a91..6c4b8d1a 100644 --- a/sesman/session.c +++ b/sesman/session.c @@ -680,7 +680,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s) g_setenv("XRDP_SESMAN_KILL_DISCONNECTED", text, 1); /* prepare the Xauthority stuff */ - if (g_getenv("XAUTHORITY") !=NULL) + if (g_getenv("XAUTHORITY") != NULL) { g_snprintf(authfile, 255, "%s", g_getenv("XAUTHORITY")); } @@ -695,7 +695,7 @@ session_start_fork(tbus data, tui8 type, struct SCP_SESSION *s) g_random((char *) &cookie_tmpval, 1); sprintf(&cookie[i], "%02X", cookie_tmpval & 0xff); } - cookie[32]='\0'; + cookie[32] = '\0'; /* Add the entry in XAUTORITY file */ env_add_xauth_user(display, cookie, NULL); |