Cosmetic change: follow coding standard
This commit is contained in:
parent
16b6471d88
commit
7d1fdd04b5
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user