Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2013 03:03:06 GMT
From:      Koichiro IWAO <meta+ports@vmeta.jp>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/183978: [maintainer update] net/xrdp-devel: Fix autologin
Message-ID:  <201311150303.rAF336X5038405@oldred.freebsd.org>
Resent-Message-ID: <201311150310.rAF3A0uD014589@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         183978
>Category:       ports
>Synopsis:       [maintainer update] net/xrdp-devel: Fix autologin
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 15 03:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Koichiro IWAO
>Release:        9.2-STABLE
>Organization:
>Environment:
>Description:
- Fix autologin
>How-To-Repeat:

>Fix:
Already fixex in upstream. Backport a patch from head.

Patch attached with submission follows:

diff -ruN /usr/ports/net/xrdp-devel/files/patch-fix-autologin net/xrdp-devel/files/patch-fix-autologin
--- /usr/ports/net/xrdp-devel/files/patch-fix-autologin	1970-01-01 09:00:00.000000000 +0900
+++ net/xrdp-devel/files/patch-fix-autologin	2013-11-13 19:54:40.197990205 +0900
@@ -0,0 +1,22 @@
+--- xrdp/xrdp_wm.c.orig	2013-11-13 10:47:47.291991020 +0000
++++ xrdp/xrdp_wm.c	2013-11-13 10:53:12.461993834 +0000
+@@ -509,12 +509,17 @@
+         {
+           /* 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, 9) != 0))
+             {
+               g_strncpy(section_name, q, 255);
+               break;


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311150303.rAF336X5038405>