summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2013-05-28 09:44:04 -0700
committerJay Sorg <jay.sorg@gmail.com>2013-05-28 09:44:04 -0700
commit64d821461c2291ddcc0ddd30bb779c9aec173e53 (patch)
tree1ed1effb271590b1720cd73693d58ce2cc39d4ee
parente1d14daeac9b725ae81f308cc8651a4e9da0e173 (diff)
downloadxrdp-proprietary-64d821461c2291ddcc0ddd30bb779c9aec173e53.tar.gz
xrdp-proprietary-64d821461c2291ddcc0ddd30bb779c9aec173e53.zip
fix for autologin
-rw-r--r--xrdp/xrdp_wm.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/xrdp/xrdp_wm.c b/xrdp/xrdp_wm.c
index 89adc61b..4badf44d 100644
--- a/xrdp/xrdp_wm.c
+++ b/xrdp/xrdp_wm.c
@@ -460,7 +460,7 @@ xrdp_wm_load_static_colors_plus(struct xrdp_wm *self, char *autorun_name)
else if (g_strcasecmp(val, "pamerrortxt") == 0)
{
val = (char *)list_get_item(values, index);
- g_strncpy(self->pamerrortxt,val,255);
+ g_strncpy(self->pamerrortxt, val, 255);
}
}
}
@@ -563,14 +563,17 @@ xrdp_wm_init(struct xrdp_wm *self)
{
/* if no doamin is passed, and no autorun in xrdp.ini,
use the first item in the xrdp.ini
- file thats not named 'globals' */
+ file thats not named
+ 'globals' or 'Logging' or 'channels' */
+ /* TODO: change this and have a 'autologin'
+ line in globals section */
file_read_sections(fd, names);
-
for (index = 0; index < names->count; index++)
{
q = (char *)list_get_item(names, index);
-
- if (g_strncasecmp("globals", q, 8) != 0)
+ if ((g_strncasecmp("globals", q, 8) != 0) &&
+ (g_strncasecmp("Logging", q, 8) != 0) &&
+ (g_strncasecmp("channels", q, 8) != 0))
{
g_strncpy(section_name, q, 255);
break;