# Copyright (c) 2006, 2009, Oracle
and/or its affiliates. All rights reserved.
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
#
and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
# The above copyright notice and this permission notice (including the next
# paragraph) shall be included in all copies or substantial portions of the
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
index 524c2af..926d159 100644
@@ -1458,6 +1458,7 @@ PKG_CHECK_MODULES([XSERVERLIBS], [$REQUIRED_LIBS])
XSERVER_CFLAGS="${XSERVER_CFLAGS} ${XSERVERCFLAGS_CFLAGS}"
XSERVER_LIBS="$DIX_LIB $MI_LIB $OS_LIB"
XSERVER_SYS_LIBS="${XSERVERLIBS_LIBS} ${SYS_LIBS} ${LIBS}"
+XSERVER_SYS_LIBS="${XSERVER_SYS_LIBS} -lproject"
AC_SUBST([XSERVER_SYS_LIBS])
index 692bec1..9c3951a 100644
@@ -115,6 +115,11 @@ Equipment Corporation.
+extern void DtloginInit(void);
+extern void DtloginCloseDown(void);
extern void Dispatch(void);
@@ -165,6 +170,13 @@ int main(int argc, char *argv[], char *envp[])
InitBlockAndWakeupHandlers();
/* Perform any operating system dependent initializations you'd like */
+ /* Create pipe for dtlogin authentication info before we tell dtlogin
+ we're done and ready for it to run. */
if(serverGeneration == 1)
CreateWellKnownSockets();
@@ -286,6 +298,11 @@ int main(int argc, char *argv[], char *envp[])
+ /* Return to root privs before calling the rest of close down */
/* Now free up whatever must be freed */
@@ -40,6 +40,9 @@ if NEED_STRLCAT
libos_la_SOURCES += $(STRLCAT_SRCS)
+libos_la_LIBADD = -lproject
EXTRA_DIST = $(SECURERPC_SRCS) $(INTERNALMALLOC_SRCS) \
$(XDMCP_SRCS) $(STRLCAT_SRCS)
index 7685751..995235e 100644
@@ -290,6 +290,19 @@ AddAuthorization (unsigned name_length, const char *name,
+ * This is added to do "chmod authorization_file" since
+ * this file is owned by root and we need to change this
+ return (authorization_file);