ports/net/xrdp/files/patch-sesman__config.c
Alejandro Pulver e79433c0f8 Based on the work of rdesktop, xrdp uses the remote desktop protocol to
present a GUI to the user.

The goal of this project is to provide a fully functional Linux terminal
server, capable of accepting connections from rdesktop and Microsoft's own
terminal server / remote desktop clients.

Unlike Windows NT/2000/2003 server, xrdp will not display a Windows desktop
but an X window desktop to the user.

Xrdp uses Xvnc or X11rdp to manage the X session.

WWW: http://xrdp.sourceforge.net/
2007-05-04 01:12:47 +00:00

20 lines
515 B
C

--- ./sesman/config.c.orig Thu May 25 17:34:32 2006
+++ ./sesman/config.c Sun Apr 29 12:42:28 2007
@@ -30,6 +30,8 @@
#include "file.h"
#include "sesman.h"
+#include <fcntl.h>
+
/******************************************************************************/
/**
*
@@ -59,7 +61,7 @@
struct list* param_n;
struct list* param_v;
- fd = g_file_open(SESMAN_CFG_FILE);
+ fd = open(SESMAN_CFG_FILE, O_RDONLY);
if (-1 == fd)
{
g_printf("sesman: error reading config: %s\r\n", SESMAN_CFG_FILE);