Fixed style and format issues.
This commit is contained in:
parent
7d7e8184ae
commit
56fe961349
@ -1793,8 +1793,10 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
restrict_outbound_clipboard_env = g_getenv("CHANSRV_RESTRICT_OUTBOUND_CLIPBOARD");
|
restrict_outbound_clipboard_env = g_getenv("CHANSRV_RESTRICT_OUTBOUND_CLIPBOARD");
|
||||||
if (restrict_outbound_clipboard_env != 0) {
|
if (restrict_outbound_clipboard_env != 0)
|
||||||
if (g_strcmp(restrict_outbound_clipboard_env, "1") == 0) {
|
{
|
||||||
|
if (g_strcmp(restrict_outbound_clipboard_env, "1") == 0)
|
||||||
|
{
|
||||||
g_restrict_outbound_clipboard = 1;
|
g_restrict_outbound_clipboard = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -275,12 +275,11 @@ config_read_security(int file, struct config_security *sc,
|
|||||||
sc->ts_always_group_check = g_text2bool((char *)list_get_item(param_v, i));
|
sc->ts_always_group_check = g_text2bool((char *)list_get_item(param_v, i));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 == g_strcasecmp(buf, SESMAN_CFG_RESTRICT_CLIPBOARD))
|
if (0 == g_strcasecmp(buf, SESMAN_CFG_SEC_RESTRICT_OUTBOUND_CLIPBOARD))
|
||||||
{
|
{
|
||||||
sc->restrict_outbound_clipboard = g_text2bool((char *)list_get_item(param_v, i));
|
sc->restrict_outbound_clipboard = g_text2bool((char *)list_get_item(param_v, i));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
#define SESMAN_CFG_SEC_USR_GROUP "TerminalServerUsers"
|
#define SESMAN_CFG_SEC_USR_GROUP "TerminalServerUsers"
|
||||||
#define SESMAN_CFG_SEC_ADM_GROUP "TerminalServerAdmins"
|
#define SESMAN_CFG_SEC_ADM_GROUP "TerminalServerAdmins"
|
||||||
#define SESMAN_CFG_SEC_ALWAYSGROUPCHECK "AlwaysGroupCheck"
|
#define SESMAN_CFG_SEC_ALWAYSGROUPCHECK "AlwaysGroupCheck"
|
||||||
#define SESMAN_CFG_RESTRICT_CLIPBOARD "RestrictOutboundClipboard"
|
#define SESMAN_CFG_SEC_RESTRICT_OUTBOUND_CLIPBOARD "RestrictOutboundClipboard"
|
||||||
|
|
||||||
#define SESMAN_CFG_SESSIONS "Sessions"
|
#define SESMAN_CFG_SESSIONS "Sessions"
|
||||||
#define SESMAN_CFG_SESS_MAX "MaxSessions"
|
#define SESMAN_CFG_SESS_MAX "MaxSessions"
|
||||||
|
@ -374,7 +374,8 @@ session_start_chansrv(char *username, int display)
|
|||||||
g_cfg->env_names,
|
g_cfg->env_names,
|
||||||
g_cfg->env_values);
|
g_cfg->env_values);
|
||||||
|
|
||||||
if (g_cfg->sec.restrict_outbound_clipboard == 1) {
|
if (g_cfg->sec.restrict_outbound_clipboard == 1)
|
||||||
|
{
|
||||||
g_setenv("CHANSRV_RESTRICT_OUTBOUND_CLIPBOARD", "1", 1);
|
g_setenv("CHANSRV_RESTRICT_OUTBOUND_CLIPBOARD", "1", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user