Bug 183978 - [maintainer update] net/xrdp-devel: Fix autologin
Summary: [maintainer update] net/xrdp-devel: Fix autologin
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Steve Wills
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-15 03:10 UTC by Koichiro Iwao
Modified: 2013-11-15 19:20 UTC (History)
0 users

See Also:


Attachments
file.diff (1.26 KB, patch)
2013-11-15 03:10 UTC, Koichiro Iwao
no flags Details | Diff
patch-xrdp-devel-fix-autologin.txt (1.60 KB, patch)
2013-11-15 04:24 UTC, Koichiro IWAO
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Koichiro Iwao freebsd_committer 2013-11-15 03:10:00 UTC
- Fix autologin

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

Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer 2013-11-15 03:10:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->swills

swills@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 Koichiro IWAO 2013-11-15 03:40:13 UTC
Oops, I duplicated the PR ports/183978 ports/183979.
Please close one of these.

-- 
`whois vmeta.jp | nkf -w`
meta <meta@vmeta.jp>
Comment 3 Koichiro IWAO 2013-11-15 04:24:43 UTC
I should increment PORTREVISON. Take this new patch.
Building on redports: 
https://redports.org/buildarchive/20131115041900-51404/

-- 
`whois vmeta.jp | nkf -w`
meta <meta@vmeta.jp>
Comment 4 Steve Wills freebsd_committer 2013-11-15 19:10:37 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 5 dfilter service freebsd_committer 2013-11-15 19:10:37 UTC
Author: swills
Date: Fri Nov 15 19:10:29 2013
New Revision: 333912
URL: http://svnweb.freebsd.org/changeset/ports/333912

Log:
  - Fix autologin
  
  PR:		ports/183978
  Submitted by:	Koichiro IWAO <meta+ports@vmeta.jp> (maintainer)

Added:
  head/net/xrdp-devel/files/patch-fix-autologin   (contents, props changed)
Modified:
  head/net/xrdp-devel/Makefile

Modified: head/net/xrdp-devel/Makefile
==============================================================================
--- head/net/xrdp-devel/Makefile	Fri Nov 15 18:59:25 2013	(r333911)
+++ head/net/xrdp-devel/Makefile	Fri Nov 15 19:10:29 2013	(r333912)
@@ -3,7 +3,7 @@
 
 PORTNAME=	xrdp
 PORTVERSION=	0.7.0.b20130912
-PORTREVISION=	0
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	net
 MASTER_SITES=	GH

Added: head/net/xrdp-devel/files/patch-fix-autologin
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/xrdp-devel/files/patch-fix-autologin	Fri Nov 15 19:10:29 2013	(r333912)
@@ -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;
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"