Commit 6ae091cc authored by Mihai Moldovan's avatar Mihai Moldovan

debian/patches: refresh all patches.

Removes some fuzziness and adds the -p diff option to show the C function name in hunk headers.
parent a4fb30f8
......@@ -36,6 +36,9 @@ nx-libs (2:3.5.0.33-0x2go1) UNRELEASED; urgency=low
Fixes: #1160.
Backported from Arctica GH 3.6.x branch.
v2: backport to nx-libs 3.5.0.x (Mihai Moldovan)
* debian/patches:
- Refresh all patches. Removes some fuzziness and adds the -p diff option
to show the C function name in hunk headers.
[ Mike Gabriel ]
* debian/libxinerama1.postinst.in:
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -48,7 +48,7 @@
@@ -48,7 +48,7 @@ CCINCLUDES =
CCDEFINES =
LDFLAGS = @LDFLAGS@
......@@ -17,7 +17,7 @@ Last-Update: 2011-12-31
#
# Only if THREADS is defined.
@@ -162,7 +162,7 @@
@@ -162,7 +162,7 @@ $(LIBDLL): $(LIBARCHIVE)
-Wl,--enable-auto-import \
-Wl,--whole-archive ${LIBARCHIVE} \
-Wl,--no-whole-archive \
......@@ -28,7 +28,7 @@ Last-Update: 2011-12-31
# $(CC) $(CCFLAGS) -o $@ $(MOBJ) $(MLIBS)
--- a/nxcompshad/configure.in
+++ b/nxcompshad/configure.in
@@ -19,7 +19,7 @@
@@ -19,7 +19,7 @@ dnl Prefer headers and libraries from nx
if test -d "../nx-X11/exports/include" ; then
CXXFLAGS="$CXXFLAGS -I../nx-X11/exports/include"
......
......@@ -7,7 +7,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1047,7 +1047,7 @@
@@ -1047,7 +1047,7 @@ $(NX_XSHADOWLIBTARGET): $(NX_XSHADOWCONF
#else
$(NX_XSHADOWLIBTARGET): $(NX_XSHADOWCONFIGTARGET)
cd $(NX_XSHADOWLIBDIR) && \
......
......@@ -5,8 +5,8 @@ Description: gcc43 fix
Forwarded: not-yet
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nxcomp/Message.cpp 2012-03-01 03:46:39.220943822 +0100
+++ b/nxcomp/Message.cpp 2012-03-01 03:47:27.605712530 +0100
--- a/nxcomp/Message.cpp
+++ b/nxcomp/Message.cpp
@@ -15,9 +15,9 @@
/* */
/**************************************************************************/
......@@ -19,8 +19,8 @@ Last-Update: 2011-12-31
#include <algorithm>
--- a/nxcomp/Misc.cpp 2012-03-01 03:46:39.220943822 +0100
+++ b/nxcomp/Misc.cpp 2012-03-01 03:47:27.605712530 +0100
--- a/nxcomp/Misc.cpp
+++ b/nxcomp/Misc.cpp
@@ -15,11 +15,11 @@
/* */
/**************************************************************************/
......@@ -37,8 +37,8 @@ Last-Update: 2011-12-31
#include <errno.h>
#include <string.h>
--- a/nxcomp/Misc.h 2012-03-01 03:46:39.220943822 +0100
+++ b/nxcomp/Misc.h 2012-03-01 03:47:27.605712530 +0100
--- a/nxcomp/Misc.h
+++ b/nxcomp/Misc.h
@@ -21,8 +21,8 @@
#include <iostream>
#include <fstream>
......@@ -50,8 +50,8 @@ Last-Update: 2011-12-31
#ifdef __sun
--- a/nxcomp/Proxy.cpp 2012-03-01 03:46:39.224943897 +0100
+++ b/nxcomp/Proxy.cpp 2012-03-01 03:47:27.605712530 +0100
--- a/nxcomp/Proxy.cpp
+++ b/nxcomp/Proxy.cpp
@@ -15,9 +15,9 @@
/* */
/**************************************************************************/
......@@ -64,8 +64,8 @@ Last-Update: 2011-12-31
#include <sys/types.h>
#include <sys/stat.h>
--- a/nxcomp/Split.cpp 2012-03-01 03:46:39.224943897 +0100
+++ b/nxcomp/Split.cpp 2012-03-01 03:47:27.605712530 +0100
--- a/nxcomp/Split.cpp
+++ b/nxcomp/Split.cpp
@@ -16,7 +16,7 @@
/**************************************************************************/
......
......@@ -12,9 +12,9 @@ Description: Fix building against libpng 1.5.
Forwarded: pending...
Author: Fedora packagers of NX
Last-Update: 2012-02-06
--- a/nxcomp/Pgn.cpp 2010-03-01 19:18:59.000000000 +0200
+++ b/nxcomp/Pgn.cpp 2011-09-13 16:35:12.000000000 +0300
@@ -414,7 +414,7 @@
--- a/nxcomp/Pgn.cpp
+++ b/nxcomp/Pgn.cpp
@@ -414,7 +414,7 @@ int DecompressPng16(unsigned char *compr
png_read_info(pngPtr, infoPtr);
......@@ -23,7 +23,7 @@ Last-Update: 2012-02-06
{
png_set_expand(pngPtr);
}
@@ -565,7 +565,7 @@
@@ -565,7 +565,7 @@ int DecompressPng24(unsigned char *compr
png_read_info( pngPtr, infoPtr ) ;
......@@ -32,7 +32,7 @@ Last-Update: 2012-02-06
{
png_set_expand(pngPtr);
}
@@ -709,7 +709,7 @@
@@ -709,7 +709,7 @@ int DecompressPng32(unsigned char *compr
png_read_info(pngPtr, infoPtr) ;
......
......@@ -6,7 +6,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-12-31
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -185,7 +185,7 @@
@@ -185,7 +185,7 @@ install.bin:
install.man:
clean:
......
......@@ -5,7 +5,7 @@ Author: Alexander Morozov
Last-Update: 2012-02-07
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -5884,20 +5884,9 @@
@@ -5884,20 +5884,9 @@ void InstallSignal(int signal, int actio
struct sigaction newAction;
......@@ -28,7 +28,7 @@ Last-Update: 2012-02-07
sigemptyset(&(newAction.sa_mask));
@@ -6509,13 +6498,9 @@
@@ -6509,13 +6498,9 @@ void SetTimer(int value)
struct sigaction action;
......
......@@ -72,7 +72,7 @@ Last-Update: 2012-12-31
file locks before proceeding. Use this option only to clean up stale locks.
.SH COMMANDS
The following commands may be used to manipulate authority files:
@@ -157,14 +157,14 @@
@@ -157,14 +157,14 @@ Authorization entries matching the speci
authority file.
.TP 8
.B "source \fIfilename"
......@@ -89,7 +89,7 @@ Last-Update: 2012-12-31
is printed on the standard output.
.TP 8
.B "exit"
@@ -194,12 +194,12 @@
@@ -194,12 +194,12 @@ referred to as \fIhostname\fP/unix:\fIdi
local entries for different machines may be stored in one authority file.
.SH EXAMPLE
.PP
......@@ -104,7 +104,7 @@ Last-Update: 2012-12-31
.fi
.PP
.sp
@@ -207,10 +207,10 @@
@@ -207,10 +207,10 @@ The following command contacts the serve
authorization using the MIT-MAGIC-COOKIE-1 protocol. Clients that
connect with this authorization will be untrusted.
.nf
......
......@@ -10,7 +10,7 @@ Author: Jan Engelhardt <jengelh@medozas.de>
Last-Update: 2012-02-14
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -64,10 +64,15 @@
@@ -64,10 +64,15 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
man1dir = @mandir@/man1
VPATH = @srcdir@
......@@ -26,7 +26,7 @@ Last-Update: 2012-02-14
#
# This should be autodetected.
@@ -264,12 +269,44 @@
@@ -264,12 +269,44 @@ depend.status:
fi
touch depend.status
......
......@@ -10,7 +10,7 @@ Author: Jan Engelhardt <jengelh@medozas.de>
Last-Update: 2012-02-14
--- a/nxcompext/Makefile.in
+++ b/nxcompext/Makefile.in
@@ -56,11 +56,15 @@
@@ -56,11 +56,15 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
man1dir = @mandir@/man1
VPATH = @srcdir@
......@@ -27,7 +27,7 @@ Last-Update: 2012-02-14
#
# This should be autodetected.
#
@@ -147,12 +151,35 @@
@@ -147,12 +151,35 @@ depend.status:
fi
touch depend.status
......
......@@ -10,7 +10,7 @@ Author: Jan Engelhardt <jengelh@medozas.de>
Last-Update: 2012-02-14
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -74,10 +74,17 @@
@@ -74,10 +74,17 @@ exec_prefix = @exec_prefix@
bindir = @bindir@
man1dir = @mandir@/man1
VPATH = @srcdir@
......@@ -28,7 +28,7 @@ Last-Update: 2012-02-14
#
# This should be autodetected.
@@ -178,12 +185,38 @@
@@ -178,12 +185,38 @@ depend.status:
fi
touch depend.status
......
......@@ -5,7 +5,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nxproxy/Makefile.in
+++ b/nxproxy/Makefile.in
@@ -41,6 +41,8 @@
@@ -41,6 +41,8 @@ VPATH = @srcdir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
......@@ -14,7 +14,7 @@ Last-Update: 2011-12-31
#
# This should be autodetected.
@@ -87,11 +89,20 @@
@@ -87,11 +89,20 @@ depend.status:
install: install.bin install.man
install.bin: $(PROGRAM)
......
......@@ -6,7 +6,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-12-31
--- a/nx-X11/config/cf/Imake.tmpl
+++ b/nx-X11/config/cf/Imake.tmpl
@@ -820,12 +820,12 @@
@@ -820,12 +820,12 @@ TCLIBDIR = TclLibDir
#ifndef UsrLibDir
#ifdef ProjectRoot
......@@ -21,7 +21,7 @@ Last-Update: 2012-12-31
#ifndef AlternateUsrLibDir
#define AlternateUsrLibDir NO
#endif
@@ -863,7 +863,7 @@
@@ -863,7 +863,7 @@ TCLIBDIR = TclLibDir
#endif
#ifndef IncRoot
#ifdef ProjectRoot
......@@ -32,7 +32,7 @@ Last-Update: 2012-12-31
#endif
--- a/nx-X11/config/cf/X11.rules
+++ b/nx-X11/config/cf/X11.rules
@@ -36,17 +36,17 @@
@@ -36,17 +36,17 @@ XCOMM $XFree86: xc/config/cf/X11.rules,v
#endif
#if defined(X11ProjectRoot)
......@@ -54,7 +54,7 @@ Last-Update: 2012-12-31
#endif
#ifdef UsrLibDirPath
# undef UsrLibDirPath
@@ -60,7 +60,7 @@
@@ -60,7 +60,7 @@ XCOMM $XFree86: xc/config/cf/X11.rules,v
#if ImportX11
# define XLdPreLibs -L$(LIBSRC)
#elif defined(UseInstalledX11) && defined(X11ProjectRoot)
......@@ -63,7 +63,7 @@ Last-Update: 2012-12-31
#else
# define XLdPreLibs /**/
#endif
@@ -70,7 +70,7 @@
@@ -70,7 +70,7 @@ XCOMM $XFree86: xc/config/cf/X11.rules,v
#define LdPreLibs LdPreLib XLdPreLibs
#ifdef X11ProjectRoot
......@@ -72,7 +72,7 @@ Last-Update: 2012-12-31
#else
# define XLdPostLibs /**/
#endif
@@ -86,7 +86,7 @@
@@ -86,7 +86,7 @@ XCOMM $XFree86: xc/config/cf/X11.rules,v
# define TopXInclude -I$(TOP)/exports/include
#else
# ifdef X11ProjectRoot
......@@ -81,7 +81,7 @@ Last-Update: 2012-12-31
# else
# define TopXInclude /**/
# endif
@@ -98,7 +98,7 @@
@@ -98,7 +98,7 @@ XCOMM $XFree86: xc/config/cf/X11.rules,v
#define TopIncludes TopInclude $(TOP_X_INCLUDES)
#if UseInstalledX11 && defined(X11ProjectRoot)
......@@ -92,7 +92,7 @@ Last-Update: 2012-12-31
#elif ImportX11
--- a/nx-X11/config/cf/X11.tmpl
+++ b/nx-X11/config/cf/X11.tmpl
@@ -1401,7 +1401,7 @@
@@ -1401,7 +1401,7 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
#ifndef BinDir
#ifdef ProjectRoot
......@@ -101,7 +101,7 @@ Last-Update: 2012-12-31
#else
#define BinDir /usr/bin/X11
#endif
@@ -1461,7 +1461,7 @@
@@ -1461,7 +1461,7 @@ FCHOWN_DEFINES = -DHAS_FCHOWN
#endif
#ifndef LibDir
# ifdef ProjectRoot
......@@ -112,7 +112,7 @@ Last-Update: 2012-12-31
# endif
--- a/nx-X11/config/cf/linux.cf
+++ b/nx-X11/config/cf/linux.cf
@@ -1054,7 +1054,7 @@
@@ -1054,7 +1054,7 @@ InstallNamedTargetNoClobber(install,file
#if HaveLib64
# ifndef LibDirName
......@@ -123,7 +123,7 @@ Last-Update: 2012-12-31
# define SystemUsrLibDir /usr/lib64
--- a/nx-X11/config/cf/site.def
+++ b/nx-X11/config/cf/site.def
@@ -72,7 +72,7 @@
@@ -72,7 +72,7 @@ XCOMM site: $XFree86: xc/config/cf/site
#ifdef AfterVendorCF
#ifndef ProjectRoot
......@@ -132,7 +132,7 @@ Last-Update: 2012-12-31
#endif
/*
@@ -87,7 +87,7 @@
@@ -87,7 +87,7 @@ XCOMM site: $XFree86: xc/config/cf/site
* ProjectRoot rather than in /etc/X11. See also HasVarDirectory,
* UseEtcX11 and UseSeparateConfDir.
*
......@@ -143,7 +143,7 @@ Last-Update: 2012-12-31
--- a/nxproxy/Makefile.in
+++ b/nxproxy/Makefile.in
@@ -33,7 +33,7 @@
@@ -33,7 +33,7 @@ LIBS = @LIBS@
srcdir = @srcdir@
prefix = @prefix@
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -313,4 +313,4 @@
@@ -313,4 +313,4 @@ clean:
distclean: clean
-rm -rf autom4te.cache config.status config.log \
......@@ -11,7 +11,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
+ config.cache depend.status Makefile tags configure
--- a/nxproxy/Makefile.in
+++ b/nxproxy/Makefile.in
@@ -109,4 +109,4 @@
@@ -109,4 +109,4 @@ clean:
$(PROGRAM) $(PROGRAM).exe $(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE)
distclean: clean
......
......@@ -5,7 +5,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-10-19
--- a/nx-X11/Makefile
+++ b/nx-X11/Makefile
@@ -138,6 +138,7 @@
@@ -138,6 +138,7 @@ Makefile::
xmakefile: Imakefile
$(RM) xmakefile
......@@ -13,7 +13,7 @@ Last-Update: 2012-10-19
$(IMAKE_CMD) -s xmakefile -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
World.Win32:
@@ -197,11 +198,16 @@
@@ -197,11 +198,16 @@ World.OS2:
# a copy of every rule that might be invoked at top level
clean:
......@@ -34,7 +34,7 @@ Last-Update: 2012-10-19
$(MAKE_CMD) $@
--- a/nxcompext/Makefile.in
+++ b/nxcompext/Makefile.in
@@ -185,5 +185,5 @@
@@ -185,5 +185,5 @@ clean:
@ALL@
distclean: clean
......@@ -43,7 +43,7 @@ Last-Update: 2012-10-19
config.cache depend.status Makefile tags
--- a/nxcompshad/Makefile.in
+++ b/nxcompshad/Makefile.in
@@ -222,4 +222,4 @@
@@ -222,4 +222,4 @@ clean:
$(LIBFULL) $(LIBLOAD) $(LIBSHARED) $(LIBARCHIVE) $(LIBDLL) $(LIBDLLSTATIC) $(PROGRAM) $(PROGRAM).exe
distclean: clean
......
Description: Fix FTBFS when built against libjpeg9a
Author: Gabriel Marcano <gabemarcano@yahoo.com>
--- a/nxcomp/Jpeg.cpp 2014-08-19 22:23:36.139072400 -0400
+++ b/nxcomp/Jpeg.cpp 2014-08-19 22:25:24.323182800 -0400
@@ -440,7 +440,7 @@
--- a/nxcomp/Jpeg.cpp
+++ b/nxcomp/Jpeg.cpp
@@ -440,7 +440,7 @@ int DecompressJpeg16(unsigned char *comp
JpegSetSrcManager(&cinfo, compressedData, compressedLen);
......@@ -11,7 +11,7 @@ Author: Gabriel Marcano <gabemarcano@yahoo.com>
if (jpegError) goto AbortDecompressJpeg16;
@@ -581,7 +581,7 @@
@@ -581,7 +581,7 @@ int DecompressJpeg24(unsigned char *comp
JpegSetSrcManager(&cinfo, compressedData, compressedLen);
......@@ -20,7 +20,7 @@ Author: Gabriel Marcano <gabemarcano@yahoo.com>
if (jpegError) goto AbortDecompressJpeg24;
@@ -718,7 +718,7 @@
@@ -718,7 +718,7 @@ int DecompressJpeg32(unsigned char *comp
JpegSetSrcManager(&cinfo, compressedData, compressedLen);
......@@ -29,7 +29,7 @@ Author: Gabriel Marcano <gabemarcano@yahoo.com>
if (jpegError) goto AbortDecompressJpeg32;
@@ -833,7 +833,7 @@
@@ -833,7 +833,7 @@ static boolean JpegFillInputBuffer(j_dec
jpegSrcManager.bytes_in_buffer = jpegBufferLen;
jpegSrcManager.next_input_byte = (JOCTET *)jpegBufferPtr;
......
Description: Honour compiler/linker option flags
Forwarded: pending
Author: Orion Poplawski <orion@cora.nwra.com>
diff -up a/nxcomp/configure.in b/nxcomp/configure.in
--- a/nxcomp/configure.in 2012-11-10 06:40:55.000000000 -0700
+++ b/nxcomp/configure.in 2012-12-11 13:13:19.390229196 -0700
--- a/nxcomp/configure.in
+++ b/nxcomp/configure.in
@@ -7,8 +7,8 @@ AC_PREREQ(2.13)
dnl Set our default compilation flags.
......@@ -15,9 +14,8 @@ diff -up a/nxcomp/configure.in b/nxcomp/configure.in
dnl Reset default linking directives.
diff -up a/nxproxy/configure.in b/nxproxy/configure.in
--- a/nxproxy/configure.in 2012-11-10 06:40:55.000000000 -0700
+++ b/nxproxy/configure.in 2012-12-11 13:16:19.955301045 -0700
--- a/nxproxy/configure.in
+++ b/nxproxy/configure.in
@@ -7,8 +7,8 @@ AC_PREREQ(2.13)
dnl Reset default compilation flags.
......
Description: Honour compiler/linker option flags
Forwarded: pending
Author: Orion Poplawski <orion@cora.nwra.com>
diff -up a/nxcompext/configure.in b/nxcompext/configure.in
--- a/nxcompext/configure.in 2012-11-10 06:40:55.000000000 -0700
+++ b/nxcompext/configure.in 2012-12-11 13:15:26.712576302 -0700
--- a/nxcompext/configure.in
+++ b/nxcompext/configure.in
@@ -7,8 +7,8 @@ AC_PREREQ(2.13)
dnl Reset default compilation flags.
......
Description: Honour compiler/linker option flags
Forwarded: pending
Author: Orion Poplawski <orion@cora.nwra.com>
diff -up a/nxcompshad/configure.in b/nxcompshad/configure.in
--- a/nxcompshad/configure.in 2012-11-10 06:40:56.000000000 -0700
+++ b/nxcompshad/configure.in 2012-12-11 13:13:25.915196300 -0700
--- a/nxcompshad/configure.in
+++ b/nxcompshad/configure.in
@@ -7,8 +7,8 @@ AC_PREREQ(2.13)
dnl Reset default compilation flags.
......
Description: Add X11 abstract socket support to nxcomp/nxproxy
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
diff --git a/nxcomp/Loop.cpp b/nxcomp/Loop.cpp
index 92b6fc2..d86809d 100644
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -4250,6 +4250,39 @@ int SetupDisplaySocket(int &xServerAddrFamily, sockaddr *&xServerAddr,
@@ -4250,6 +4250,39 @@ int SetupDisplaySocket(int &xServerAddrF
// where the socket will be created.
//
......@@ -45,7 +43,7 @@ index 92b6fc2..d86809d 100644
struct stat statInfo;
char unixSocketDir[DEFAULT_STRING_LENGTH];
@@ -4322,6 +4355,11 @@ int SetupDisplaySocket(int &xServerAddrFamily, sockaddr *&xServerAddr,
@@ -4322,6 +4355,11 @@ int SetupDisplaySocket(int &xServerAddrF
xServerAddr = (sockaddr *) xServerAddrUNIX;
xServerAddrLength = sizeof(sockaddr_un);
......
......@@ -5,7 +5,7 @@ Abstract:
--- a/nx-X11/lib/xtrans/Xtranssock.c
+++ b/nx-X11/lib/xtrans/Xtranssock.c
@@ -172,6 +172,8 @@
@@ -172,6 +172,8 @@ static int IBMsockInit = 0;
sock_init();\
IBMsockInit = 1;\
}
......@@ -14,7 +14,7 @@ Abstract:
#undef EINTR
#define EINTR SOCEINTR
#undef EINVAL
@@ -192,6 +194,10 @@
@@ -192,6 +194,10 @@ static int IBMsockInit = 0;
#define SocketInitOnce() /**/
#endif
......@@ -25,7 +25,7 @@ Abstract:
#define MIN_BACKLOG 128
#ifdef SOMAXCONN
#if SOMAXCONN > MIN_BACKLOG
@@ -532,7 +538,7 @@
@@ -532,7 +538,7 @@ static char *_NXGetOldUnixPath(char *pat
void TRANS(SocketRejectConnection) (XtransConnInfo ciptr)
{
......@@ -34,7 +34,7 @@ Abstract:
struct sockaddr sa;
fd_set fs;
struct timeval t;
@@ -914,9 +920,11 @@
@@ -914,9 +920,11 @@ TRANS(SocketINETGetAddr) (XtransConnInfo
struct sockaddr_in socknamev4;
void *socknamePtr;
#if defined(SVR4) || defined(__SCO__)
......@@ -47,7 +47,7 @@ Abstract:
#endif
PRMSG (3,"SocketINETGetAddr(%p)\n", ciptr, 0, 0);
@@ -935,7 +943,7 @@
@@ -935,7 +943,7 @@ TRANS(SocketINETGetAddr) (XtransConnInfo
}
if (getsockname (ciptr->fd,(struct sockaddr *) socknamePtr,
......@@ -56,7 +56,7 @@ Abstract:
{
#ifdef WIN32
errno = WSAGetLastError();
@@ -1477,23 +1485,28 @@
@@ -1477,23 +1485,28 @@ TRANS(SocketSetOption) (XtransConnInfo c
#ifdef UNIXCONN
static int
......@@ -95,7 +95,7 @@ Abstract:
return 0;
}
#endif
@@ -1726,6 +1739,12 @@
@@ -1726,6 +1739,12 @@ TRANS(SocketUNIXCreateListener) (XtransC
int oldUmask;
int status;
unsigned int mode;
......@@ -108,7 +108,7 @@ Abstract:
PRMSG (2, "SocketUNIXCreateListener(%s)\n",
port ? port : "NULL", 0, 0);
@@ -1741,11 +1760,11 @@
@@ -1741,11 +1760,11 @@ TRANS(SocketUNIXCreateListener) (XtransC
mode = 0777;
#endif
#ifdef NX_TRANS_SOCKET
......@@ -122,7 +122,7 @@ Abstract:
PRMSG (1, "SocketUNIXCreateListener: mkdir(%s) failed, errno = %d\n",
UNIX_DIR, errno, 0);
#endif
@@ -1754,13 +1773,18 @@
@@ -1754,13 +1773,18 @@ TRANS(SocketUNIXCreateListener) (XtransC
}
#endif
......@@ -143,7 +143,7 @@ Abstract:
#endif
PRMSG (1, "SocketUNIXCreateListener: path too long\n", 0, 0, 0);
return TRANS_CREATE_LISTENER_FAILED;
@@ -1784,7 +1808,12 @@
@@ -1784,7 +1808,12 @@ TRANS(SocketUNIXCreateListener) (XtransC
fprintf(stderr, "SocketUNIXCreateListener: Unlinking path [%s] for ciptr at [%p].\n",
sockname.sun_path, (void *) ciptr);
#endif
......@@ -157,7 +157,7 @@ Abstract:
if ((status = TRANS(SocketCreateListener) (ciptr,
(struct sockaddr *) &sockname, namelen, flags)) < 0)
@@ -1814,6 +1843,9 @@
@@ -1814,6 +1843,9 @@ TRANS(SocketUNIXCreateListener) (XtransC
return TRANS_CREATE_LISTENER_FAILED;
}
......@@ -167,7 +167,7 @@ Abstract:
ciptr->family = sockname.sun_family;
ciptr->addrlen = namelen;
memcpy (ciptr->addr, &sockname, ciptr->addrlen);
@@ -1823,7 +1855,6 @@
@@ -1823,7 +1855,6 @@ TRANS(SocketUNIXCreateListener) (XtransC
return 0;
}
......@@ -175,7 +175,7 @@ Abstract:
static int
TRANS(SocketUNIXResetListener) (XtransConnInfo ciptr)
@@ -1836,15 +1867,20 @@
@@ -1836,15 +1867,20 @@ TRANS(SocketUNIXResetListener) (XtransCo
struct stat statb;
int status = TRANS_RESET_NOOP;
unsigned int mode;
......@@ -198,7 +198,7 @@ Abstract:
#endif
{
int oldUmask = umask (0);
@@ -2034,6 +2070,11 @@
@@ -2034,6 +2070,11 @@ TRANS(SocketUNIXAccept) (XtransConnInfo
}
......@@ -210,7 +210,7 @@ Abstract:
newciptr->addrlen = ciptr->addrlen;
memcpy (newciptr->addr, ciptr->addr, newciptr->addrlen);
@@ -2626,6 +2667,12 @@
@@ -2626,6 +2667,12 @@ TRANS(SocketUNIXConnect) (XtransConnInfo
struct sockaddr_un sockname;
int namelen;
......@@ -223,7 +223,7 @@ Abstract:
#if defined(hpux) && defined(X11_t)
struct sockaddr_un old_sockname;
int old_namelen;
@@ -2674,9 +2721,9 @@
@@ -2674,9 +2721,9 @@ TRANS(SocketUNIXConnect) (XtransConnInfo
sockname.sun_family = AF_UNIX;
#ifdef NX_TRANS_SOCKET
......@@ -235,7 +235,7 @@ Abstract:
#endif
PRMSG (1, "SocketUNIXConnect: path too long\n", 0, 0, 0);
return TRANS_CONNECT_FAILED;
@@ -2722,6 +2769,14 @@
@@ -2722,6 +2769,14 @@ TRANS(SocketUNIXConnect) (XtransConnInfo
#endif
/*
......@@ -250,7 +250,7 @@ Abstract:
* Do the connect()
*/
@@ -2757,12 +2812,18 @@
@@ -2757,12 +2812,18 @@ TRANS(SocketUNIXConnect) (XtransConnInfo
* should try again.
*/
......@@ -274,7 +274,7 @@ Abstract:
PRMSG (2,"SocketUNIXConnect: Can't connect: errno = %d\n",
EGET(),0, 0);
@@ -2791,6 +2852,9 @@
@@ -2791,6 +2852,9 @@ SocketUNIXConnectPost:
return TRANS_CONNECT_FAILED;
}
......@@ -284,7 +284,7 @@ Abstract:
ciptr->family = AF_UNIX;
ciptr->addrlen = namelen;
ciptr->peeraddrlen = namelen;
@@ -3323,7 +3387,11 @@
@@ -3323,7 +3387,11 @@ Xtransport TRANS(SocketINET6Funcs) =
Xtransport TRANS(SocketLocalFuncs) = {
/* Socket Interface */
"local",
......@@ -296,7 +296,7 @@ Abstract:
#ifdef TRANS_CLIENT
TRANS(SocketOpenCOTSClient),
#endif /* TRANS_CLIENT */
@@ -3369,7 +3437,7 @@
@@ -3369,7 +3437,7 @@ static char* unix_nolisten[] = { "local"
Xtransport TRANS(SocketUNIXFuncs) = {
/* Socket Interface */
"unix",
......@@ -307,7 +307,7 @@ Abstract:
0,
--- a/nx-X11/lib/xtrans/Xtransint.h
+++ b/nx-X11/lib/xtrans/Xtransint.h
@@ -374,9 +374,10 @@
@@ -374,9 +374,10 @@ typedef struct _Xtransport_table {
#define TRANS_DISABLED (1<<2) /* Don't open this one */
#define TRANS_NOLISTEN (1<<3) /* Don't listen on this one */
#define TRANS_NOUNLINK (1<<4) /* Dont unlink transport endpoints */
......
......@@ -3,7 +3,7 @@ Author: Mihai Moldovan <ionic@ionic.de>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -6832,9 +6832,9 @@
@@ -6832,9 +6832,9 @@ int WaitForRemote(int portNum)
{
sockaddr_in newAddr;
......
......@@ -8,8 +8,6 @@ Last-Update: 2012-02-14
nx-X11/programs/Xserver/Imakefile | 4 +++-
2 files changed, 7 insertions(+), 2 deletions(-)
Index: nx-X11/lib/X11/Imakefile
===================================================================
--- a/nx-X11/lib/X11/Imakefile
+++ b/nx-X11/lib/X11/Imakefile
@@ -1147,15 +1147,17 @@ ks_tables.h: $(XINCLUDESRC)/keysymdef.h
......@@ -32,8 +30,6 @@ Index: nx-X11/lib/X11/Imakefile
#ifdef SunArchitecture
$(NX_XCOMPLIBTARGET): $(NX_XCOMPCONFIGTARGET)
Index: nx-X11/programs/Xserver/Imakefile
===================================================================
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1036,9 +1036,11 @@ NX_XSHADOWLIBDIR = $(XTOP)/../nxcomps
......
......@@ -15,7 +15,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
--- a/nx-X11/Makefile
+++ b/nx-X11/Makefile
@@ -32,8 +32,8 @@
@@ -32,8 +32,8 @@ VERSSRC = $(CONFIGSRC)/util/printver.c
VERSPROG = $(CONFIGSRC)/util/printver.exe
all:
......@@ -26,7 +26,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
all-initial:
@echo Please use make World, or on NT use nmake World.Win32.
@@ -57,8 +57,8 @@
@@ -57,8 +57,8 @@ World:
@date
@echo ""
@if [ -f xmakefile ]; then \
......@@ -37,7 +37,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
$(RM) xmakefile; \
fi
@if [ ! -f $(IRULESRC)/host.def ]; then \
@@ -84,14 +84,14 @@
@@ -84,14 +84,14 @@ World:
# fi
cd $(IMAKESRC) && $(MAKE) $(FLAGS) clean
$(MAKE) $(MFLAGS) Makefile.boot
......@@ -59,7 +59,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
@echo ""
@date
@echo ""
@@ -154,15 +154,15 @@
@@ -154,15 +154,15 @@ World.Win32:
-if exist xmakefile.bak del xmakefile.bak
-if exist xmakefile ren xmakefile xmakefile.bak
$(IMAKE:/=\) -s xmakefile -I$(IRULESRC) $(IMAKE_DEFINES) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
......@@ -81,7 +81,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
@echo :
@echo :
@echo Full build of $(RELEASE) complete.
@@ -198,38 +198,38 @@
@@ -198,38 +198,38 @@ World.OS2:
# a copy of every rule that might be invoked at top level
clean:
......@@ -137,7 +137,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
+ ${MAKE} ${MAKE_OPTS} $@
--- a/nx-X11/config/imake/Makefile.ini
+++ b/nx-X11/config/imake/Makefile.ini
@@ -21,7 +21,6 @@
@@ -21,7 +21,6 @@ IMAKEMDEP_CROSSCOMPILE = -DCROSSCOMPILE_
SHELL = /bin/sh
RM = rm -f
MV = mv
......@@ -147,7 +147,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
NPROC = 1
--- a/nx-X11/lib/X11/Imakefile
+++ b/nx-X11/lib/X11/Imakefile
@@ -1161,25 +1161,23 @@
@@ -1161,25 +1161,23 @@ $(NX_XCOMPEXTCONFIGTARGET):
#ifdef SunArchitecture
$(NX_XCOMPLIBTARGET): $(NX_XCOMPCONFIGTARGET)
......@@ -183,7 +183,7 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1045,11 +1045,11 @@
@@ -1045,11 +1045,11 @@ $(NX_XSHADOWCONFIGTARGET):
#ifdef SunArchitecture
$(NX_XSHADOWLIBTARGET): $(NX_XSHADOWCONFIGTARGET)
cd $(NX_XSHADOWLIBDIR) && \
......@@ -197,4 +197,3 @@ Last-Update: 2012-01-26 22:29:13.993994227 +0100
#endif
ServerTarget(nxagent,$(NX_XSHADOWLIBTARGET) $(NXAGENTDIRS),$(NXAGENTOBJS), \
......@@ -17,7 +17,7 @@ Date: Tue Jun 23 16:09:50 2015 +0200
--- a/nx-X11/lib/Xrender/Color.c
+++ b/nx-X11/lib/Xrender/Color.c
@@ -85,8 +85,8 @@ XRenderParseColor(Display *dpy, char *spec, XRenderColor *def)
@@ -85,8 +85,8 @@ XRenderParseColor(Display *dpy, char *sp
def->blue = coreColor.blue;
def->alpha = 0xffff;
}
......
......@@ -15,7 +15,7 @@ Author: Mihai Moldovan <ionic@ionic.de>
--- a/nxcomp/Agent.h
+++ b/nxcomp/Agent.h
@@ -149,30 +149,38 @@
@@ -149,30 +149,38 @@ class Agent
int remoteCanRead(const fd_set * const readSet)
{
......@@ -60,7 +60,7 @@ Author: Mihai Moldovan <ionic@ionic.de>
transport_ -> queuable() != 0 &&
canRead_ == 1);
}
@@ -203,13 +211,17 @@
@@ -203,13 +211,17 @@ class Agent
int proxyCanRead(const fd_set * const readSet)
{
......
......@@ -3,7 +3,7 @@ Author: Mihai Moldovan <ionic@ionic.de>
--- a/nxcomp/Auth.cpp
+++ b/nxcomp/Auth.cpp
@@ -217,22 +217,31 @@
@@ -217,22 +217,31 @@ int Auth::getCookie()
//
// Use the nxauth command on Windows and the Mac, xauth
......
Description: Avoid building libXcomp.so.1 (which is identical to libXcomp.so.3)
Author: Orion Poplawski <orion@cora.nwra.com>
--- a/nx-X11/lib/X11/Imakefile 2013-01-04 05:25:49.000000000 -0700
+++ b/nx-X11/lib/X11/Imakefile 2013-01-15 15:26:07.969167259 -0700
--- a/nx-X11/lib/X11/Imakefile
+++ b/nx-X11/lib/X11/Imakefile
@@ -63,7 +63,6 @@ NX_XCOMPLIBDIR = $(XTOP)/../nxcomp
NX_XCOMPLIBLINK = Xcomp
NX_XCOMPLIBTARGET = $(NX_XCOMPLIBDIR)/$(NX_XCOMPLIBNAME)
......
Description: Fix FTBFS on ppc64 architecture
Author: Orion Poplawski <orion@cora.nwra.com>
diff -up a/nx-X11/lib/GL/mesa/main/Imakefile.inc b/nx-X11/lib/GL/mesa/main/Imakefile.inc
--- a/nx-X11/lib/GL/mesa/main/Imakefile.inc 2014-01-04 13:39:35.000000000 -0700
+++ b/nx-X11/lib/GL/mesa/main/Imakefile.inc 2014-01-24 12:04:00.085272615 -0700
--- a/nx-X11/lib/GL/mesa/main/Imakefile.inc
+++ b/nx-X11/lib/GL/mesa/main/Imakefile.inc
@@ -1,5 +1,8 @@
XCOMM $XFree86: xc/lib/GL/mesa/src/Imakefile.inc,v 1.7tsi Exp $
......
Description: Fix FTBFS when compiled with -Werror=format-security
Author: Orion Poplawski <orion@cora.nwra.com>
diff -up a/nx-X11/config/imake/imake.c b/nx-X11/config/imake/imake.c
--- a/nx-X11/config/imake/imake.c 2014-01-04 13:39:35.000000000 -0700
+++ b/nx-X11/config/imake/imake.c 2014-01-24 13:55:53.940697330 -0700
--- a/nx-X11/config/imake/imake.c
+++ b/nx-X11/config/imake/imake.c
@@ -7,8 +7,6 @@
* be passed to the template file. *
* *
......
......@@ -6,7 +6,7 @@ Abstract:
idea why.
--- a/nx-X11/lib/xtrans/Xtransint.h
+++ b/nx-X11/lib/xtrans/Xtransint.h
@@ -444,7 +444,7 @@
@@ -444,7 +444,7 @@ static int trans_mkdir (
int hack= 0, saveerrno=errno; \
struct timeval tp;\
gettimeofday(&tp,0); \
......@@ -15,7 +15,7 @@ Abstract:
ErrorF(x+hack,a,b,c); \
ErrorF("timestamp (ms): %d\n",tp.tv_sec*1000+tp.tv_usec/1000); \
errno=saveerrno; \
@@ -454,7 +454,7 @@
@@ -454,7 +454,7 @@ static int trans_mkdir (
int hack= 0, saveerrno=errno; \
struct timeval tp;\
gettimeofday(&tp,0); \
......@@ -24,7 +24,7 @@ Abstract:
fprintf(stderr, x+hack,a,b,c); fflush(stderr); \
fprintf(stderr, "timestamp (ms): %d\n",tp.tv_sec*1000+tp.tv_usec/1000); \
fflush(stderr); \
@@ -466,14 +466,14 @@
@@ -466,14 +466,14 @@ static int trans_mkdir (
/* Use ErrorF() for the X server */
#define PRMSG(lvl,x,a,b,c) if (lvl <= XTRANSDEBUG){ \
int hack= 0, saveerrno=errno; \
......@@ -43,7 +43,7 @@ Abstract:
} else ((void)0)
--- a/nx-X11/programs/nxauth/process.c
+++ b/nx-X11/programs/nxauth/process.c
@@ -974,7 +974,7 @@
@@ -974,7 +974,7 @@ fprintfhex(register FILE *fp, int len, c
char *hex;
hex = bintohex(len, cp);
......@@ -54,7 +54,7 @@ Abstract:
--- a/nx-X11/programs/Xserver/GL/glx/glximports.c
+++ b/nx-X11/programs/Xserver/GL/glx/glximports.c
@@ -110,12 +110,12 @@
@@ -110,12 +110,12 @@ void *__glXImpRealloc(__GLcontext *gc, v
void __glXImpWarning(__GLcontext *gc, char *msg)
{
......@@ -71,7 +71,7 @@ Abstract:
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.c
@@ -232,7 +232,7 @@
@@ -232,7 +232,7 @@ static int nxagentPrintError(dpy, event,
int nxagentExitHandler(const char *message)
{
......@@ -82,7 +82,7 @@ Abstract:
}
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -481,7 +481,7 @@
@@ -481,7 +481,7 @@ void OsVendorVErrorFFunction(const char
nxagentStartRedirectToClientsLog();
......@@ -93,7 +93,7 @@ Abstract:
}
--- a/nx-X11/programs/Xserver/os/log.c
+++ b/nx-X11/programs/Xserver/os/log.c
@@ -692,9 +692,9 @@
@@ -692,9 +692,9 @@ Error(char *str)
return;
sprintf(err, "%s: ", str);
strcat(err, strerror(saveErrno));
......
......@@ -18,7 +18,7 @@ Abstract:
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -327,7 +327,10 @@
@@ -327,7 +327,10 @@ FIXME: We need to set save under on the
if (mask & CWEventMask)
{
......@@ -30,7 +30,7 @@ Abstract:
}
#ifdef WARNING
else
@@ -2891,7 +2894,10 @@
@@ -2891,7 +2894,10 @@ FIXME: Do we need to set save unders att
if (mask & CWEventMask)
{
......@@ -42,7 +42,7 @@ Abstract:
}
#ifdef WARNING
else
@@ -3352,7 +3358,10 @@
@@ -3352,7 +3358,10 @@ void nxagentSetTopLevelEventMask(pWin)
if (nxagentOption(Rootless) && nxagentWindowTopLevel(pWin))
{
......@@ -56,7 +56,7 @@ Abstract:
}
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1665,7 +1665,10 @@
@@ -1665,7 +1665,10 @@ N/A
attributes.background_pixel = nxagentBlackPixel;
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-01-12
--- a/nx-X11/programs/Xserver/os/oscolor.c
+++ b/nx-X11/programs/Xserver/os/oscolor.c
@@ -53,7 +53,7 @@
@@ -53,7 +53,7 @@ SOFTWARE.
#include <sys/stat.h>
#include <unistd.h>
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-01-12
--- a/nx-X11/programs/Xserver/Xext/security.c
+++ b/nx-X11/programs/Xserver/Xext/security.c
@@ -86,7 +86,7 @@
@@ -86,7 +86,7 @@ extern unsigned char LbxReqCode;
#ifdef NXAGENT_SERVER
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2012-01-12
--- a/nx-X11/programs/Xserver/Xext/security.c
+++ b/nx-X11/programs/Xserver/Xext/security.c
@@ -86,7 +86,7 @@
@@ -86,7 +86,7 @@ extern unsigned char LbxReqCode;
#ifdef NXAGENT_SERVER
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -136,7 +136,7 @@
@@ -136,7 +136,7 @@ extern Status XkbGetContro
#define XKB_ALTERNATE_BASE_DIRECTORY "/usr/X11R6/lib/X11/xkb"
#endif
#ifndef XKB_CONFIG_FILE
......@@ -17,7 +17,7 @@ Last-Update: 2011-12-31
#endif
#ifndef XKB_DFLT_RULES_FILE
#define XKB_DFLT_RULES_FILE "xfree86"
@@ -985,8 +985,7 @@
@@ -985,8 +985,7 @@ XkbError:
XkbGetControls(nxagentDisplay, XkbAllControlsMask, xkb);
......@@ -27,7 +27,7 @@ Last-Update: 2011-12-31
nxagentXkbConfigFilePath = malloc((nxagentXkbConfigFilePathSize + 1) * sizeof(char));
@@ -995,9 +994,7 @@
@@ -995,9 +994,7 @@ XkbError:
FatalError("nxagentKeyboardProc: malloc failed.");
}
......
......@@ -8,7 +8,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.c
@@ -497,7 +497,7 @@
@@ -497,7 +497,7 @@ char *nxagentGetRootPath(void)
return rootPath;
}
......@@ -19,7 +19,7 @@ Last-Update: 2011-12-31
char *rootPath;
--- a/nx-X11/programs/Xserver/hw/nxagent/Error.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Error.h
@@ -34,4 +34,6 @@
@@ -34,4 +34,6 @@ void nxagentStartRedirectToClientsLog(vo
void nxagentEndRedirectToClientsLog(void);
......@@ -28,7 +28,7 @@ Last-Update: 2011-12-31
#endif /* __Error_H__ */
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -52,6 +52,7 @@
@@ -52,6 +52,7 @@ is" without express or implied warranty.
#include "Keyboard.h"
#include "Events.h"
#include "Options.h"
......@@ -36,7 +36,7 @@ Last-Update: 2011-12-31
#include "NXlib.h"
@@ -72,6 +73,8 @@
@@ -72,6 +73,8 @@ is" without express or implied warranty.
#include "Xatom.h"
......@@ -45,7 +45,7 @@ Last-Update: 2011-12-31
static int nxagentXkbGetNames(char **rules, char **model, char **layout,
char **variant, char **options);
@@ -1790,6 +1793,48 @@
@@ -1790,6 +1793,48 @@ void nxagentKeycodeConversionSetup(void)
}
#endif
......
......@@ -7,7 +7,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -166,7 +166,9 @@
@@ -166,7 +166,9 @@ Bool nxagentValidServerTargets(Atom targ
if (target == XA_STRING) return True;
if (target == serverTEXT) return True;
......@@ -18,7 +18,7 @@ Last-Update: 2011-12-31
return False;
}
@@ -402,7 +404,12 @@
@@ -402,7 +404,12 @@ FIXME: Do we need this?
lastServerProperty = X->xselectionrequest.property;
lastServerRequestor = X->xselectionrequest.requestor;
lastServerTarget = X->xselectionrequest.target;
......@@ -32,7 +32,7 @@ Last-Update: 2011-12-31
x.u.u.type = SelectionRequest;
x.u.selectionRequest.time = GetTimeInMillis();
@@ -424,11 +431,12 @@
@@ -424,11 +431,12 @@ FIXME: Do we need this?
x.u.selectionRequest.selection = CurrentSelections[i].selection;
......
......@@ -7,7 +7,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1226,10 +1226,11 @@
@@ -1226,10 +1226,11 @@ int nxagentConvertSelection(ClientPtr cl
Atom xa_STRING[4];
xEvent x;
......@@ -24,7 +24,7 @@ Last-Update: 2011-12-31
property,
--- a/nx-X11/programs/Xserver/hw/nxagent/Image.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Image.c
@@ -644,6 +644,10 @@
@@ -644,6 +644,10 @@ FIXME: Should use these.
pDrawable -> depth != 1 &&
nxagentOption(DeferLevel) >= 1)
{
......@@ -35,7 +35,7 @@ Last-Update: 2011-12-31
#ifdef TEST
fprintf(stderr, "nxagentPutImage: WARNING! Prevented operation on region [%d,%d,%d,%d] "
"for drawable at [%p] with drawable pixmap.\n", pRegion -> extents.x1,
@@ -654,6 +658,9 @@
@@ -654,6 +658,9 @@ FIXME: Should use these.
nxagentMarkCorruptedRegion(pDrawable, pRegion);
goto nxagentPutImageEnd;
......
......@@ -7,7 +7,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/Window.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Window.c
@@ -176,6 +176,14 @@
@@ -176,6 +176,14 @@ static void nxagentReconfigureWindow(poi
static int nxagentForceExposure(WindowPtr pWin, pointer ptr);
......@@ -22,7 +22,7 @@ Last-Update: 2011-12-31
/*
* This is currently unused.
*/
@@ -1861,6 +1869,17 @@
@@ -1861,6 +1869,17 @@ Bool nxagentRealizeWindow(WindowPtr pWin
nxagentAddConfiguredWindow(pWin, CWStackingOrder);
nxagentAddConfiguredWindow(pWin, CW_Shape);
......@@ -40,7 +40,7 @@ Last-Update: 2011-12-31
#ifdef SHAPE
/*
@@ -1907,6 +1926,17 @@
@@ -1907,6 +1926,17 @@ Bool nxagentUnrealizeWindow(pWin)
return True;
}
......
......@@ -18,7 +18,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
Last-Update: 2011-12-31
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -1973,6 +1973,23 @@
@@ -1973,6 +1973,23 @@ ProcCreatePixmap(client)
client->errorValue = 0;
return BadValue;
}
......
......@@ -9,7 +9,7 @@ Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -177,6 +177,29 @@
@@ -177,6 +177,29 @@ int nxagentSaveUnder;
int nxagentDoFullGeneration = 1;
......@@ -39,7 +39,7 @@ Last-Update: 2012-01-11
/*
* Called at X server's initialization.
*/
@@ -193,6 +216,11 @@
@@ -193,6 +216,11 @@ void InitOutput(ScreenInfo *screenInfo,
#endif
/*
......@@ -53,7 +53,7 @@ Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.h
@@ -37,6 +37,8 @@
@@ -37,6 +37,8 @@ extern int nxagentDoFullGeneration;
extern int nxagentBackingStore;
extern int nxagentSaveUnder;
......
......@@ -6,7 +6,7 @@ Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -77,6 +77,7 @@
@@ -77,6 +77,7 @@ is" without express or implied warranty.
#include "NXlib.h"
#include NXAGENT_ICON_NAME
......@@ -14,7 +14,7 @@ Last-Update: 2012-01-11
/*
* Set here the required log level.
@@ -1941,12 +1942,29 @@
@@ -1941,12 +1942,29 @@ Bool nxagentMakeIcon(Display *display, P
Bool success = False;
XlibPixmap IconPixmap;
XlibPixmap IconShape;
......@@ -46,7 +46,7 @@ Last-Update: 2012-01-11
if (icon_fp != NULL)
{
@@ -1985,7 +2003,7 @@
@@ -1985,7 +2003,7 @@ Bool nxagentMakeIcon(Display *display, P
{
status = XpmCreatePixmapFromData(display,
DefaultRootWindow(display),
......
......@@ -9,7 +9,7 @@ Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
Last-Update: 2012-01-13
--- a/nx-X11/config/cf/host.def
+++ b/nx-X11/config/cf/host.def
@@ -686,7 +686,7 @@
@@ -686,7 +686,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
*
#define BuildXinerama NO
*/
......@@ -20,7 +20,7 @@ Last-Update: 2012-01-13
* If you don't want to build support for the GLX extension, uncomment this.
--- a/nx-X11/config/cf/X11.tmpl
+++ b/nx-X11/config/cf/X11.tmpl
@@ -456,7 +456,7 @@
@@ -456,7 +456,7 @@ XORGRELSTRING = XorgManVersionString
#define BuildXinerama NO
#endif
#ifndef BuildXineramaLibrary
......@@ -31,7 +31,7 @@ Last-Update: 2012-01-13
#define BuildDmxDevelTools NO
--- a/nx-X11/lib/Xinerama/Xinerama.c
+++ b/nx-X11/lib/Xinerama/Xinerama.c
@@ -34,7 +34,7 @@
@@ -34,7 +34,7 @@ Equipment Corporation.
#include <X11/extensions/panoramiXext.h>
#include <X11/extensions/panoramiXproto.h>
#include <X11/extensions/Xinerama.h>
......@@ -40,7 +40,7 @@ Last-Update: 2012-01-13
static XExtensionInfo _panoramiX_ext_info_data;
static XExtensionInfo *panoramiX_ext_info = &_panoramiX_ext_info_data;
@@ -249,6 +249,16 @@
@@ -249,6 +249,16 @@ Bool XineramaIsActive(Display *dpy)
xXineramaIsActiveReq *req;
XExtDisplayInfo *info = find_display (dpy);
......@@ -57,7 +57,7 @@ Last-Update: 2012-01-13
if(!XextHasExtension(info))
return False; /* server doesn't even have the extension */
@@ -266,7 +276,6 @@
@@ -266,7 +276,6 @@ Bool XineramaIsActive(Display *dpy)
return rep.state;
}
......@@ -65,7 +65,7 @@ Last-Update: 2012-01-13
XineramaScreenInfo *
XineramaQueryScreens(
@@ -279,39 +288,72 @@
@@ -279,39 +288,72 @@ XineramaQueryScreens(
xXineramaQueryScreensReq *req;
XineramaScreenInfo *scrnInfo = NULL;
......@@ -166,7 +166,7 @@ Last-Update: 2012-01-13
--- a/nx-X11/programs/Xserver/hw/nxagent/Imakefile
+++ b/nx-X11/programs/Xserver/hw/nxagent/Imakefile
@@ -206,7 +206,7 @@
@@ -206,7 +206,7 @@ DEFINES = -g $(OS_DEFINES) $(EXT_DEFINES
-UNX_DEBUG_INPUT \
-DRANDR_10_INTERFACE \
-DRANDR_12_INTERFACE \
......@@ -177,7 +177,7 @@ Last-Update: 2012-01-13
all:: $(OBJS)
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXxvdisp.c
@@ -275,17 +275,19 @@
@@ -275,17 +275,19 @@ ProcXvDispatch(ClientPtr client)
case xv_PutVideo:
#ifdef PANORAMIX
if(!noPanoramiXExtension)
......@@ -201,7 +201,7 @@ Last-Update: 2012-01-13
case xv_GetVideo: result = (ProcXvGetVideo(client)); break;
case xv_GetStill: result = (ProcXvGetStill(client)); break;
case xv_GrabPort: result = (ProcXvGrabPort(client)); break;
@@ -295,35 +297,39 @@
@@ -295,35 +297,39 @@ ProcXvDispatch(ClientPtr client)
case xv_StopVideo:
#ifdef PANORAMIX
if(!noPanoramiXExtension)
......@@ -251,7 +251,7 @@ Last-Update: 2012-01-13
case xv_ListImageFormats: result = (ProcXvListImageFormats(client)); break;
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1021,7 +1021,7 @@
@@ -1021,7 +1021,7 @@ NXAGENTNXLIBS = -L ../../../nxcomp -L ..
#else
NXAGENTNXLIBS = -L ../../../nxcomp -L ../../../nxcompext -L ../../../nxcompshad \
-lXcomp -lXcompext -lXcompshad -lXrender -lX11 -lXext -lXfixes \
......@@ -262,7 +262,7 @@ Last-Update: 2012-01-13
#endif
--- a/nx-X11/programs/Xserver/Xext/panoramiX.c
+++ b/nx-X11/programs/Xserver/Xext/panoramiX.c
@@ -1045,16 +1045,7 @@
@@ -1045,16 +1045,7 @@ ProcXineramaIsActive(ClientPtr client)
rep.type = X_Reply;
rep.length = 0;
rep.sequenceNumber = client->sequence;
......@@ -281,7 +281,7 @@ Last-Update: 2012-01-13
swaps (&rep.sequenceNumber, n);
--- a/nx-X11/programs/Xserver/Xext/panoramiX.h
+++ b/nx-X11/programs/Xserver/Xext/panoramiX.h
@@ -44,7 +44,7 @@
@@ -44,7 +44,7 @@ Equipment Corporation.
#define _PANORAMIX_H_
#include <X11/extensions/panoramiXext.h>
......
......@@ -3,7 +3,7 @@ Author: Oleksandr Shneyder <o.schneyder@phoca-gmbh.de>
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -672,6 +672,12 @@
@@ -672,6 +672,12 @@ int ddxProcessArgument(int argc, char *a
return 1;
}
......@@ -16,7 +16,7 @@ Author: Oleksandr Shneyder <o.schneyder@phoca-gmbh.de>
if (!strcmp(argv[i], "-noonce"))
{
nxagentOnce = False;
@@ -1855,6 +1861,7 @@
@@ -1855,6 +1861,7 @@ void ddxUseMsg()
ErrorF("The NX system adds the following arguments:\n");
ErrorF("-forcenx force use of NX protocol messages assuming communication through nxproxy\n");
ErrorF("-timeout int auto-disconnect timeout in seconds (minimum allowed: 60)\n");
......@@ -26,7 +26,7 @@ Author: Oleksandr Shneyder <o.schneyder@phoca-gmbh.de>
ErrorF("-nocomposite disable the use of the composite extension\n");
--- a/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Handlers.c
@@ -219,7 +219,7 @@
@@ -219,7 +219,7 @@ void nxagentBlockHandler(pointer data, s
if (nxagentOption(Rootless) &&
nxagentLastWindowDestroyed && nxagentRootlessDialogPid == 0 &&
......@@ -37,7 +37,7 @@ Author: Oleksandr Shneyder <o.schneyder@phoca-gmbh.de>
fprintf(stderr, "nxagentBlockHandler: No application running. Closing the session.\n");
--- a/nx-X11/programs/Xserver/hw/nxagent/Options.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Options.c
@@ -56,6 +56,7 @@
@@ -56,6 +56,7 @@ void nxagentInitOptions()
nxagentOptions.Persistent = 1;
nxagentOptions.Rootless = UNDEFINED;
nxagentOptions.Fullscreen = UNDEFINED;
......@@ -47,7 +47,7 @@ Author: Oleksandr Shneyder <o.schneyder@phoca-gmbh.de>
nxagentOptions.Y = 0;
--- a/nx-X11/programs/Xserver/hw/nxagent/Options.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Options.h
@@ -381,6 +381,13 @@
@@ -381,6 +381,13 @@ typedef struct _AgentOptions
int ImageRateLimit;
......
Description: Fix repainting of SolidFill pictures with libcairo > 1.12.x
Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/Render.c
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c 2012-05-16 18:05:07.000000000 +0200
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c 2012-09-20 20:53:37.893459269 +0200
--- a/nx-X11/programs/Xserver/hw/nxagent/Render.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Render.c
@@ -2689,11 +2689,17 @@ void nxagentReconnectPicture(pointer p0,
#endif
}
......@@ -25,9 +24,8 @@ diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserv
}
#ifdef TEST
diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c 2010-11-11 21:18:00.000000000 +0100
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c 2012-09-20 20:54:50.209817849 +0200
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c
@@ -1137,6 +1137,10 @@ CreateSolidPicture (Picture pid, xRender
}
pPicture->pSourcePict->type = SourcePictTypeSolidFill;
......@@ -39,9 +37,8 @@ diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicture.c b/nx-X11/programs/
return pPicture;
}
diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h 2010-10-22 16:04:24.000000000 +0200
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h 2012-09-20 20:55:31.106020653 +0200
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h
@@ -95,6 +95,7 @@ typedef struct _PictTransform {
typedef struct _PictSolidFill {
unsigned int type;
......@@ -50,4 +47,3 @@ diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/X/NXpicturestr.h b/nx-X11/progra
} PictSolidFill, *PictSolidFillPtr;
typedef struct _PictGradientStop {
Description: Fix refresh errors on Win2012 RDP connections with speed=ADSL
Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
diff -rupN a/nx-X11/programs/Xserver/hw/nxagent/Render.c b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
--- a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c 2014-05-06 12:52:35.082288455 +0200
+++ b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c 2014-05-06 12:54:00.258710819 +0200
--- a/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/GCOps.c
@@ -339,7 +339,7 @@ FIXME: The popup could be synchronized w
*/
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -984,7 +984,7 @@
@@ -984,7 +984,7 @@ int ddxProcessArgument(int argc, char *a
if (!strcmp(argv[i], "-clipboard"))
{
......@@ -12,7 +12,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
{
nxagentChangeOption(Clipboard, ClipboardBoth);
}
@@ -996,7 +996,7 @@
@@ -996,7 +996,7 @@ int ddxProcessArgument(int argc, char *a
{
nxagentChangeOption(Clipboard, ClipboardServer);
}
......@@ -21,7 +21,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
{
nxagentChangeOption(Clipboard, ClipboardNone);
}
@@ -1255,6 +1255,29 @@
@@ -1255,6 +1255,29 @@ static void nxagentParseOptions(char *na
return;
}
......
......@@ -8,11 +8,9 @@ Abstract:
#585.
Author: Ulrich Sibiller <uli42@gmx.de>
Index: nx-libs/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
===================================================================
--- nx-libs.orig/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c 2014-11-04 22:42:50.893569624 +0100
+++ nx-libs/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c 2014-11-04 22:42:50.893569624 +0100
@@ -1556,10 +1556,14 @@
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1556,10 +1556,14 @@ int nxagentInitClipboard(WindowPtr pWin)
fprintf(stderr, "nxagentInitClipboard: Registering for XFixesSelectionNotify events.\n");
#endif
......
......@@ -3,7 +3,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
--- a/nx-X11/programs/Xserver/hw/nxagent/Args.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Args.c
@@ -60,6 +60,7 @@
@@ -60,6 +60,7 @@ is" without express or implied warranty.
#endif
#include "Handlers.h"
#include "Error.h"
......@@ -11,7 +11,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
/*
* NX includes and definitions.
@@ -1090,6 +1091,11 @@
@@ -1090,6 +1091,11 @@ static void nxagentParseOptions(char *na
return;
}
......@@ -23,7 +23,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
else if (!strcmp(name, "fullscreen"))
{
if (nxagentReconnectTrap == True)
@@ -1369,6 +1375,11 @@
@@ -1369,6 +1375,11 @@ void nxagentProcessOptionsFile()
validateString(nxagentOptionFile));
#endif
......@@ -37,7 +37,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
return;
--- a/nx-X11/programs/Xserver/hw/nxagent/Init.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Init.c
@@ -63,7 +63,7 @@
@@ -63,7 +63,7 @@ is" without express or implied warranty.
#include "NX.h"
#include "NXlib.h"
......@@ -46,7 +46,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
/*
* Set here the required log level.
*/
@@ -233,6 +233,7 @@
@@ -233,6 +233,7 @@ void InitOutput(ScreenInfo *screenInfo,
fprintf(stderr, "Info: Agent running with pid '%d'.\n", getpid());
fprintf(stderr, "Session: Starting session at '%s'.\n", GetTimeAsString());
......@@ -56,7 +56,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
/*
--- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
@@ -118,6 +118,33 @@
@@ -118,6 +118,33 @@ void *reconnectLossyLevel[STEP_NONE];
static enum RECONNECTION_STEP failedStep;
......@@ -90,7 +90,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
int nxagentHandleConnectionStates(void)
{
#ifdef TEST
@@ -211,6 +238,7 @@
@@ -211,6 +238,7 @@ TODO: This should be reset only when
fprintf(stderr, "Session: Display failure detected at '%s'.\n", GetTimeAsString());
fprintf(stderr, "Session: Suspending session at '%s'.\n", GetTimeAsString());
......@@ -98,7 +98,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
}
nxagentDisconnectSession();
@@ -265,6 +293,7 @@
@@ -265,6 +293,7 @@ TODO: This should be reset only when
fprintf(stderr, "Session: Session suspended at '%s'.\n", GetTimeAsString());
#endif
}
......@@ -106,7 +106,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
nxagentResetDisplayHandlers();
@@ -622,6 +651,7 @@
@@ -622,6 +651,7 @@ Bool nxagentReconnectSession(void)
#else
fprintf(stderr, "Session: Session resumed at '%s'.\n", GetTimeAsString());
#endif
......@@ -114,7 +114,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
nxagentRemoveSplashWindow(NULL);
@@ -785,12 +815,14 @@
@@ -785,12 +815,14 @@ void nxagentHandleConnectionChanges()
if (nxagentSessionState == SESSION_GOING_DOWN)
{
fprintf(stderr, "Session: Suspending session at '%s'.\n", GetTimeAsString());
......@@ -129,7 +129,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
if (nxagentReconnectSession())
{
@@ -803,6 +835,7 @@
@@ -803,6 +835,7 @@ void nxagentHandleConnectionChanges()
fprintf(stderr, "Session: Display failure detected at '%s'.\n", GetTimeAsString());
fprintf(stderr, "Session: Suspending session at '%s'.\n", GetTimeAsString());
......@@ -139,7 +139,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
}
--- a/nx-X11/programs/Xserver/hw/nxagent/Reconnect.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Reconnect.h
@@ -34,6 +34,8 @@
@@ -34,6 +34,8 @@ void nxagentInitReconnector(void);
Bool nxagentReconnectSession(void);
int nxagentHandleConnectionStates(void);
void nxagentHandleConnectionChanges(void);
......@@ -150,7 +150,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
{
--- a/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/X/NXdispatch.c
@@ -609,6 +609,7 @@
@@ -609,6 +609,7 @@ Reply Total Cached Bits In Bits Out
#endif
nxagentSessionState = SESSION_UP;
......@@ -158,7 +158,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
}
#ifdef BLOCKS
@@ -823,6 +824,7 @@
@@ -823,6 +824,7 @@ Reply Total Cached Bits In Bits Out
*/
fprintf(stderr, "Session: Terminating session at '%s'.\n", GetTimeAsString());
......@@ -166,7 +166,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
nxagentWaitDisplay();
@@ -833,6 +835,7 @@
@@ -833,6 +835,7 @@ Reply Total Cached Bits In Bits Out
{
NXShadowDestroy();
}
......
......@@ -3,7 +3,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -8872,7 +8872,8 @@
@@ -8872,7 +8872,8 @@ int ParseEnvironmentOptions(const char *
}
else if (strcasecmp(name, "defer") == 0 ||
strcasecmp(name, "tile") == 0 ||
......
......@@ -3,7 +3,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -8328,8 +8328,8 @@
@@ -8328,8 +8328,8 @@ int ParseEnvironmentOptions(const char *
cerr << "Error" << ": Can't identify 'link' option in string '"
<< value << "'.\n";
......@@ -14,7 +14,7 @@ Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de>
}
}
else if (strcasecmp(name, "limit") == 0)
@@ -8783,8 +8783,8 @@
@@ -8783,8 +8783,8 @@ int ParseEnvironmentOptions(const char *
cerr << "Error" << ": Can't identify pack method for string '"
<< value << "'.\n";
......
......@@ -15,7 +15,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
#include <zlib.h>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -4187,7 +4187,7 @@
@@ -4187,7 +4187,7 @@ int SetupDisplaySocket(int &xServerAddrF
#endif
......@@ -24,7 +24,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if ((separator == NULL) || !isdigit(*(separator + 1)))
{
@@ -8240,7 +8240,7 @@
@@ -8240,7 +8240,7 @@ int ParseEnvironmentOptions(const char *
char *name;
char *value;
......@@ -33,7 +33,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if (value != NULL)
{
@@ -11010,7 +11010,7 @@
@@ -11010,7 +11010,7 @@ int ParsePackOption(const char *opt)
packMethod == PACK_LOSSLESS ||
packMethod == PACK_ADAPTIVE)
{
......@@ -42,7 +42,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if (dash != NULL && strlen(dash) == 2 &&
*(dash + 1) >= '0' && *(dash + 1) <= '9')
@@ -12275,6 +12275,10 @@
@@ -12275,6 +12275,10 @@ int SetShmem()
control -> ShmemServer = 0;
}
......@@ -53,7 +53,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
return 1;
}
@@ -13525,7 +13529,7 @@
@@ -13525,7 +13529,7 @@ int ParseHostOption(const char *opt, cha
int newPort = port;
......@@ -112,7 +112,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
#include <X11/X.h>
#include <X11/Xatom.h>
@@ -1079,7 +1081,6 @@
@@ -1079,7 +1081,6 @@ int ServerChannel::handleRead(EncodeBuff
priority_++;
}
......@@ -120,7 +120,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
//
// Account this data to the original opcode.
//
@@ -1500,7 +1501,6 @@
@@ -1500,7 +1501,6 @@ int ServerChannel::handleRead(EncodeBuff
continue;
}
}
......@@ -128,7 +128,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
//
// Check if user pressed the CTRL+ALT+SHIFT+ESC key
// sequence because was unable to kill the session
@@ -5475,7 +5475,7 @@
@@ -5475,7 +5475,7 @@ int ServerChannel::handleColormap(unsign
*logofs << "handleColormap: Dumping colormap entries:\n"
<< logofs_flush;
......@@ -137,7 +137,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
for (unsigned int i = 0; i < unpackState_[resource] ->
colormap -> entries; i++)
@@ -7100,7 +7100,12 @@
@@ -7100,7 +7100,12 @@ int ServerChannel::handleShmemReply(Enco
{
encodeBuffer.encodeValue(stage, 2);
......@@ -150,7 +150,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
shmemState_ -> opcode = *(buffer + 9);
shmemState_ -> event = *(buffer + 10);
shmemState_ -> error = *(buffer + 11);
@@ -7128,7 +7133,12 @@
@@ -7128,7 +7133,12 @@ int ServerChannel::handleShmemReply(Enco
cerr << "Info" << ": Using shared memory parameters 1/"
<< (shmemState_ -> size / 1024) << "K.\n";
......@@ -163,7 +163,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
encodeBuffer.encodeBoolValue(1);
}
@@ -7241,7 +7251,7 @@
@@ -7241,7 +7251,7 @@ int ServerChannel::handleShmemRequest(De
// memory support is disabled by the
// user.
//
......@@ -172,7 +172,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if (control -> ShmemServer == 1 &&
control -> ShmemServerSize > 0 &&
enableServer == 1)
@@ -7252,8 +7262,12 @@
@@ -7252,8 +7262,12 @@ int ServerChannel::handleShmemRequest(De
{
memcpy(buffer + 8, "NO-MIT-", 7);
}
......@@ -186,7 +186,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
opcodeStore_ -> getShmemParameters, stage);
//
@@ -7289,9 +7303,13 @@
@@ -7289,9 +7303,13 @@ int ServerChannel::handleShmemRequest(De
shmemState_ -> size = control -> ShmemServerSize;
......@@ -201,7 +201,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if (shmemState_ -> id >= 0)
{
#if defined(TEST) || defined(INFO)
@@ -7302,8 +7320,12 @@
@@ -7302,8 +7320,12 @@ int ServerChannel::handleShmemRequest(De
#endif
......@@ -215,7 +215,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
if (shmemState_ -> address != NULL)
{
#ifdef TEST
@@ -7437,6 +7459,10 @@
@@ -7437,6 +7459,10 @@ int ServerChannel::handleShmem(unsigned
return 0;
}
......@@ -226,7 +226,7 @@ Description: Fix FTBFS of nxproxy/nxcomp on Android
//
// Ignore null requests and requests that will not result
@@ -8054,14 +8080,22 @@
@@ -8054,14 +8080,22 @@ void ServerChannel::handleShmemStateRemo
{
if (shmemState_ != NULL)
{
......
......@@ -2,7 +2,7 @@ Description: Force NX proxy to bind to loopback devices only (loopback option)
Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -952,6 +952,7 @@
@@ -952,6 +952,7 @@ static char listenHost[DEFAULT_STRING_LE
static char displayHost[DEFAULT_STRING_LENGTH] = { 0 };
static char authCookie[DEFAULT_STRING_LENGTH] = { 0 };
......@@ -10,7 +10,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
static int proxyPort = DEFAULT_NX_PROXY_PORT;
static int xPort = DEFAULT_NX_X_PORT;
@@ -3959,7 +3960,14 @@
@@ -3959,7 +3960,14 @@ int SetupTcpSocket()
tcpAddr.sin_family = AF_INET;
tcpAddr.sin_port = htons(proxyPortTCP);
......@@ -26,7 +26,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
if (bind(tcpFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
{
@@ -4550,7 +4558,14 @@
@@ -4550,7 +4558,14 @@ int ListenConnection(int port, const cha
tcpAddr.sin_family = AF_INET;
tcpAddr.sin_port = htons(portTCP);
......@@ -42,7 +42,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
if (bind(newFD, (sockaddr *) &tcpAddr, sizeof(tcpAddr)) == -1)
{
@@ -6718,7 +6733,14 @@
@@ -6718,7 +6733,14 @@ int WaitForRemote(int portNum)
#ifdef __APPLE__
......@@ -58,7 +58,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
#else
@@ -8397,6 +8419,10 @@
@@ -8397,6 +8419,10 @@ int ParseEnvironmentOptions(const char *
listenPort = ValidateArg("local", name, value);
}
......@@ -69,7 +69,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
else if (strcasecmp(name, "accept") == 0)
{
if (*connectHost != '\0')
@@ -13778,7 +13804,14 @@
@@ -13778,7 +13804,14 @@ int ParseListenOption(int &address)
}
else
{
......@@ -102,7 +102,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
// TCP port offset applied to any NX port specification.
//
@@ -137,6 +145,8 @@
@@ -137,6 +145,8 @@ static const char UsageInfo[] =
\n\
listen=n Local port used for accepting the proxy connection.\n\
\n\
......@@ -113,7 +113,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
connect=s Name or IP of host that the proxy will connect to.\n\
--- a/nxcomp/Misc.h
+++ b/nxcomp/Misc.h
@@ -90,6 +90,14 @@
@@ -90,6 +90,14 @@ extern const int DEFAULT_NX_SLAVE_PORT_C
extern const int DEFAULT_NX_SLAVE_PORT_SERVER_OFFSET;
//
......
......@@ -15,7 +15,7 @@ Author: Oleksandr Shneyder <oleksandr.shneyder@obviously-nice.de>
Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -1762,6 +1762,42 @@
@@ -1762,6 +1762,42 @@ N/A
nxagentDefaultWindows[pScreen->myNum]);
#endif
......
......@@ -17,8 +17,6 @@ Last-Update: 2012-02-14
nx-X11/programs/nxauth/Imakefile | 2 +-
3 files changed, 10 insertions(+), 9 deletions(-)
Index: nx-X11/config/cf/host.def
===================================================================
--- a/nx-X11/config/cf/host.def
+++ b/nx-X11/config/cf/host.def
@@ -138,7 +138,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
......@@ -68,8 +66,6 @@ Index: nx-X11/config/cf/host.def
#endif
#if !defined(NXZaurusXServer) && defined(NXiPAQXServer)
Index: nx-X11/programs/Xserver/Imakefile
===================================================================
--- a/nx-X11/programs/Xserver/Imakefile
+++ b/nx-X11/programs/Xserver/Imakefile
@@ -1013,15 +1013,15 @@ $(NXAGENTOBJS) $(NXAGENTLIBS) $(NXAGENTS
......@@ -91,8 +87,6 @@ Index: nx-X11/programs/Xserver/Imakefile
#endif
#endif
Index: nx-X11/programs/nxauth/Imakefile
===================================================================
--- a/nx-X11/programs/nxauth/Imakefile
+++ b/nx-X11/programs/nxauth/Imakefile
@@ -26,7 +26,7 @@ XCOMM $XFree86: xc/programs/xauth/Imakef
......
......@@ -6,7 +6,7 @@ Abstract:
instead.
--- a/nx-X11/programs/Xserver/xkb/ddxLoad.c
+++ b/nx-X11/programs/Xserver/xkb/ddxLoad.c
@@ -180,7 +180,7 @@
@@ -180,7 +180,7 @@ Win32System(const char *cmdline)
#define NX_XKB_BASE_DIRECTORY "/usr/lib/X11/xkb"
#define NX_XKB_ALTERNATE_BASE_DIRECTORY "/usr/share/X11/xkb"
......@@ -15,7 +15,7 @@ Abstract:
#define NX_ALT_XKBCOMP_PATH "/usr/bin"
static char _NXXkbBasePath[PATH_MAX];
@@ -189,43 +189,43 @@
@@ -189,43 +189,43 @@ static char _NXXkbCompPath[PATH_MAX];
static int NXVerifyXkbBaseDirectory(const char *dirPath)
{
int size;
......@@ -73,7 +73,7 @@ Abstract:
return 0;
}
@@ -235,7 +235,7 @@
@@ -235,7 +235,7 @@ static int NXVerifyXkbBaseDirectory(cons
dirPath);
#endif
......
......@@ -10,7 +10,7 @@ Author: Nito Martinez <Nito@Qindel.ES>
#include "NXpack.h"
#include "Control.h"
@@ -594,44 +595,17 @@
@@ -594,44 +595,17 @@ Control::Control()
RemoteVersionMajor = -1;
RemoteVersionMinor = -1;
RemoteVersionPatch = -1;
......@@ -63,7 +63,7 @@ Author: Nito Martinez <Nito@Qindel.ES>
*logofs << "Control: Major version is " << LocalVersionMajor
--- a/nxcomp/Control.h
+++ b/nxcomp/Control.h
@@ -299,17 +299,26 @@
@@ -299,17 +299,26 @@ class Control
// Version number of local and remote proxy.
//
......@@ -92,7 +92,7 @@ Author: Nito Martinez <Nito@Qindel.ES>
// Which unpack methods are implemented in proxy?
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -14250,7 +14250,8 @@
@@ -14250,7 +14250,8 @@ void PrintVersionInfo()
cerr << "NXPROXY - " << "Version "
<< control -> LocalVersionMajor << "."
<< control -> LocalVersionMinor << "."
......@@ -104,7 +104,7 @@ Author: Nito Martinez <Nito@Qindel.ES>
}
--- a/nxcomp/Makefile.in
+++ b/nxcomp/Makefile.in
@@ -105,7 +105,8 @@
@@ -105,7 +105,8 @@ MSRC =
CSRC = MD5.c \
Pack.c \
......@@ -116,7 +116,7 @@ Author: Nito Martinez <Nito@Qindel.ES>
Children.cpp \
--- a/nxcomp/NX.h
+++ b/nxcomp/NX.h
@@ -442,6 +442,12 @@
@@ -442,6 +442,12 @@ extern int NXTransParseEnvironment(const
extern void NXTransCleanup(void) __attribute__((noreturn));
......
......@@ -15,7 +15,7 @@ Abstract:
--- a/nx-X11/config/cf/host.def
+++ b/nx-X11/config/cf/host.def
@@ -311,6 +311,7 @@
@@ -311,6 +311,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
*
#define BuildFreeType NO
*/
......@@ -23,7 +23,7 @@ Abstract:
/*
* To set non-default build options for the underlying FreeType libraries,
@@ -892,7 +893,7 @@
@@ -892,7 +893,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
*
#define HasFreetype2 NO
*/
......@@ -32,7 +32,7 @@ Abstract:
/*
* To use a FreeType library already installed outside the default search
@@ -909,7 +910,7 @@
@@ -909,7 +910,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
*
#define HasFontconfig NO
*/
......@@ -41,7 +41,7 @@ Abstract:
/*
* To use a Fontconfig library already installed outside the default search
@@ -925,7 +926,7 @@
@@ -925,7 +926,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
*
#define HasExpat NO
*/
......@@ -50,7 +50,7 @@ Abstract:
/*
* To use a Expat library already installed outside the default search
@@ -961,7 +962,7 @@
@@ -961,7 +962,7 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
#define SharedLibXdmcp YES
......@@ -59,7 +59,7 @@ Abstract:
#else /* #if !defined(NXZaurusXServer) && !defined(NXiPAQXServer) && !defined(DarwinArchitecture) */
@@ -1019,3 +1020,11 @@
@@ -1019,3 +1020,11 @@ XCOMM $XFree86: xc/config/cf/xf86site.de
#endif
#endif /* #if !defined(NXZaurusXServer) && !defined(NXiPAQXServer) && !defined(DarwinArchitecture) */
......@@ -82,7 +82,7 @@ Abstract:
all::
--- a/nx-X11/lib/Imakefile
+++ b/nx-X11/lib/Imakefile
@@ -213,14 +213,8 @@
@@ -213,14 +213,8 @@ XEXTLIBDIR = Xext
#if BuildLibraries
OLDXLIBDIR = oldX
......
......@@ -12,8 +12,6 @@ Abstract:
https://www.securecoding.cert.org/confluence/display/seccode/POS36-C.+Observe+correct+revocation+order+while+relinquishing+privileges
.
This patch adds initgroups() calls to the code to initialize the supplemental group list.
diff --git a/nx-X11/programs/Xserver/os/utils.c b/nx-X11/programs/Xserver/os/utils.c
index 7e62654..9b2431a 100644
--- a/nx-X11/programs/Xserver/os/utils.c
+++ b/nx-X11/programs/Xserver/os/utils.c
@@ -112,6 +112,9 @@ OR PERFORMANCE OF THIS SOFTWARE.
......@@ -44,8 +42,6 @@ index 7e62654..9b2431a 100644
if (setgid(getgid()) == -1)
_exit(127);
if (setuid(getuid()) == -1)
diff --git a/nxcomp/Pipe.cpp b/nxcomp/Pipe.cpp
index 7238d0c..aacbbae 100644
--- a/nxcomp/Pipe.cpp
+++ b/nxcomp/Pipe.cpp
@@ -21,6 +21,7 @@
......@@ -56,7 +52,7 @@ index 7238d0c..aacbbae 100644
#include "Pipe.h"
#include "Misc.h"
@@ -234,6 +235,8 @@ FILE *Popen(char * const parameters[], const char *type)
@@ -234,6 +235,8 @@ FILE *Popen(char * const parameters[], c
// Child.
//
......
Description: Handle some serious compilation warnings
Author: Mirraz Mirraz <mirraz1@rambler.ru>
--- a/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c 2013-08-30 20:18:40.000000000 +0600
+++ b/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c 2013-09-30 18:39:42.357560169 +0600
@@ -3259,7 +3259,6 @@
--- a/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c
+++ b/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c
@@ -3259,7 +3259,6 @@ parse_vp_instruction (GLcontext * ctx, G
vp->SrcReg[0].Swizzle = SWIZZLE_NOOP;
vp->SrcReg[1].Swizzle = SWIZZLE_NOOP;
vp->SrcReg[2].Swizzle = SWIZZLE_NOOP;
......@@ -10,9 +10,9 @@ Author: Mirraz Mirraz <mirraz1@rambler.ru>
vp->DstReg.WriteMask = 0xf;
switch (type) {
--- a/nx-X11/lib/X11/imLcPrs.c 2013-08-30 20:18:40.000000000 +0600
+++ b/nx-X11/lib/X11/imLcPrs.c 2013-09-30 19:02:56.925125678 +0600
@@ -589,7 +589,7 @@
--- a/nx-X11/lib/X11/imLcPrs.c
+++ b/nx-X11/lib/X11/imLcPrs.c
@@ -589,7 +589,7 @@ parseline(
l = _Xmbstoutf8(local_utf8_buf, rhs_string_mb, LOCAL_UTF8_BUFSIZE - 1);
if (l == LOCAL_UTF8_BUFSIZE - 1) {
......@@ -21,9 +21,9 @@ Author: Mirraz Mirraz <mirraz1@rambler.ru>
}
if( (rhs_string_utf8 = (char *)Xmalloc(l + 1)) == NULL ) {
Xfree( rhs_string_wc );
--- a/nx-X11/programs/Xserver/xkb/ddxLoad.c 2013-08-30 20:18:40.000000000 +0600
+++ b/nx-X11/programs/Xserver/xkb/ddxLoad.c 2013-09-30 18:56:27.358995920 +0600
@@ -37,6 +37,12 @@
--- a/nx-X11/programs/Xserver/xkb/ddxLoad.c
+++ b/nx-X11/programs/Xserver/xkb/ddxLoad.c
@@ -37,6 +37,12 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
#include <errno.h>
#include <stdio.h>
#include <ctype.h>
......
......@@ -13,9 +13,9 @@ Abstract:
The attached patch fixes these compilation issues by not overriding the
clear() method when compiling against libc++, since the libc++ headers
seem to do essentially the same as the overriden method.
--- a/nxcomp/Types.h 2013-11-05 01:35:22.000000000 +0100
+++ b/nxcomp/Types.h 2013-11-05 01:37:30.000000000 +0100
@@ -55,6 +55,9 @@
--- a/nxcomp/Types.h
+++ b/nxcomp/Types.h
@@ -55,6 +55,9 @@ class T_data : public vector < unsigned
return &*(vector < unsigned char >::begin());
}
......@@ -25,7 +25,7 @@ Abstract:
void clear()
{
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
@@ -95,12 +98,16 @@
@@ -95,12 +98,16 @@ class T_data : public vector < unsigned
#endif /* #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) */
}
......@@ -42,7 +42,7 @@ Abstract:
void clear()
{
#if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H)
@@ -141,6 +148,7 @@
@@ -141,6 +148,7 @@ class T_messages : public vector < Messa
#endif /* #if defined(__STL_USE_STD_ALLOCATORS) || defined(__GLIBCPP_INTERNAL_VECTOR_H) */
}
......
......@@ -2,7 +2,7 @@ Description: Provide build support for aarch64 architecture
Author: Orion Poplawski <orion@cora.nwra.com>
--- a/nx-X11/config/cf/Imake.cf
+++ b/nx-X11/config/cf/Imake.cf
@@ -908,6 +908,9 @@
@@ -908,6 +908,9 @@ XCOMM Keep cpp from replacing path eleme
# endif
# undef __ARMEB__
# endif
......@@ -14,7 +14,7 @@ Author: Orion Poplawski <orion@cora.nwra.com>
# undef mc68000
--- a/nx-X11/config/cf/linux.cf
+++ b/nx-X11/config/cf/linux.cf
@@ -844,6 +844,16 @@
@@ -844,6 +844,16 @@ InstallNamedTargetNoClobber(install,file
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
#endif /* Arm32Achitecture */
......@@ -33,7 +33,7 @@ Author: Orion Poplawski <orion@cora.nwra.com>
# define LinuxMachineDefines -D__hppa__
--- a/nx-X11/config/cf/Imake.tmpl
+++ b/nx-X11/config/cf/Imake.tmpl
@@ -526,6 +526,10 @@
@@ -526,6 +526,10 @@ XCOMM the platform-specific parameters -
#define ByteOrder X_BIG_ENDIAN
#elif defined(Arm32Architecture)
#define ByteOrder X_LITTLE_ENDIAN
......@@ -46,7 +46,7 @@ Author: Orion Poplawski <orion@cora.nwra.com>
#elif defined(PpcArchitecture) || defined(Ppc64Architecture)
--- a/nx-X11/programs/Xserver/include/servermd.h
+++ b/nx-X11/programs/Xserver/include/servermd.h
@@ -154,6 +154,28 @@
@@ -154,6 +154,28 @@ SOFTWARE.
#endif /* __arm32__ */
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/Loop.cpp
+++ b/nxcomp/Loop.cpp
@@ -4183,7 +4183,7 @@
@@ -4183,7 +4183,7 @@ int SetupDisplaySocket(int &xServerAddrF
#ifdef __APPLE__
......
......@@ -2,11 +2,9 @@ Description: Link to libdl to fix undefined references to 'dlopen' and 'dlsym'.
Author: Bernard Cafarelli <voyageur@gentoo.org>
v2: generally link to libdl in all of nx-X11. (Mike Gabriel)
diff --git a/nx-X11/config/cf/lnxLib.tmpl b/nx-X11/config/cf/lnxLib.tmpl
index 788733c..be1fa14 100644
--- a/nx-X11/config/cf/lnxLib.tmpl
+++ b/nx-X11/config/cf/lnxLib.tmpl
@@ -17,7 +17,7 @@ XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
@@ -17,7 +17,7 @@ XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLI
#define XawClientLibs $(XAWLIB) $(XMULIBONLY) $(XTOOLLIB) $(XPMLIB) $(EXTRAXAWCLIENTLIBS) $(XLIB)
#endif
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nx-X11/config/cf/lnxLib.tmpl
+++ b/nx-X11/config/cf/lnxLib.tmpl
@@ -61,6 +61,9 @@ XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLIB)
@@ -61,6 +61,9 @@ XMULIB = $(XMULIBONLY) $(XTOOLLIB) $(XLI
#define SharedXxf86vmReqs $(LDPRELIB) $(XLIB)
#define SharedxkbfileReqs $(LDPRELIB) $(XONLYLIB)
#define SharedxkbuiReqs $(LDPRELIB) $(XKBFILELIB) $(XONLYLIB)
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/CHANGELOG
+++ b/nxcomp/CHANGELOG
@@ -668,7 +668,7 @@
@@ -668,7 +668,7 @@ nxcomp-2.0.0-70
nxcomp-2.0.0-69
......@@ -14,7 +14,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
old version of the library.
--- a/nxcomp/ClientReadBuffer.cpp
+++ b/nxcomp/ClientReadBuffer.cpp
@@ -29,7 +29,7 @@
@@ -29,7 +29,7 @@ unsigned int ClientReadBuffer::suggested
//
// Even if the pending data is not
// enough to make a complete message,
......@@ -25,7 +25,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/EncodeBuffer.cpp
+++ b/nxcomp/EncodeBuffer.cpp
@@ -505,12 +505,12 @@
@@ -505,12 +505,12 @@ void EncodeBuffer::growBuffer(unsigned i
{
#ifdef PANIC
*logofs << "EncodeBuffer: PANIC! Error in context [C] "
......@@ -42,7 +42,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
HandleAbort();
--- a/nxcomp/GenericChannel.cpp
+++ b/nxcomp/GenericChannel.cpp
@@ -210,7 +210,7 @@
@@ -210,7 +210,7 @@ int GenericChannel::handleRead(EncodeBuf
// All data has been read from the read buffer.
// We still need to mark the end of the encode
// buffer just before sending the frame. This
......@@ -53,7 +53,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/ProxyReadBuffer.cpp
+++ b/nxcomp/ProxyReadBuffer.cpp
@@ -50,7 +50,7 @@
@@ -50,7 +50,7 @@ unsigned int ProxyReadBuffer::suggestedL
//
// Even if the readable data is not
// enough to make a complete message,
......@@ -64,7 +64,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/ServerReadBuffer.cpp
+++ b/nxcomp/ServerReadBuffer.cpp
@@ -46,7 +46,7 @@
@@ -46,7 +46,7 @@ unsigned int ServerReadBuffer::suggested
//
// Even if the readable data is not
// enough to make a complete message,
......@@ -75,7 +75,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/Transport.h
+++ b/nxcomp/Transport.h
@@ -226,7 +226,7 @@
@@ -226,7 +226,7 @@ class Transport
protected:
//
......@@ -86,7 +86,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nxcomp/Types.h
+++ b/nxcomp/Types.h
@@ -179,7 +179,7 @@
@@ -179,7 +179,7 @@ typedef set < File *, T_older > T_files;
typedef list < int > T_list;
//
......
......@@ -3,7 +3,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nx-X11/extras/Mesa/src/mesa/main/debug.c
+++ b/nx-X11/extras/Mesa/src/mesa/main/debug.c
@@ -43,7 +43,7 @@
@@ -43,7 +43,7 @@ const char *_mesa_prim_name[GL_POLYGON+4
"GL_QUAD_STRIP",
"GL_POLYGON",
"outside begin/end",
......@@ -14,7 +14,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
--- a/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c
+++ b/nx-X11/extras/Mesa/src/mesa/shader/arbprogparse.c
@@ -4106,7 +4106,7 @@
@@ -4106,7 +4106,7 @@ _mesa_parse_arb_program (GLcontext * ctx
if (*inst++ != REVISION) {
_mesa_set_program_error (ctx, 0, "Grammar version mismatch");
_mesa_error(ctx, GL_INVALID_OPERATION,
......@@ -25,7 +25,7 @@ Author: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
else {
--- a/nx-X11/ChangeLog.X.org
+++ b/nx-X11/ChangeLog.X.org
@@ -12733,7 +12733,7 @@
@@ -12733,7 +12733,7 @@ Mon Jan 3 12:45:10 2005 Søren Sandman
* programs/xkill/xkill.c: (get_window_id):
Changed cursor for the 'kill' action from XC_draped_box to
XC_Pirate. If you don't like it we can change it back
......
......@@ -11,8 +11,6 @@ Particularly the following macros have been tested -DTEST -DDEBUG -DDUMP -DFLUSH
nxcomp/Proxy.cpp | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/nxcomp/Agent.h b/nxcomp/Agent.h
index ded344d..2c5badf 100644
--- a/nxcomp/Agent.h
+++ b/nxcomp/Agent.h
@@ -217,7 +217,7 @@ class Agent
......@@ -24,11 +22,9 @@ index ded344d..2c5badf 100644
<< ".\n" << logofs_flush;
#endif
diff --git a/nxcomp/ClearArea.cpp b/nxcomp/ClearArea.cpp
index 223a3b3..83b7281 100644
--- a/nxcomp/ClearArea.cpp
+++ b/nxcomp/ClearArea.cpp
@@ -92,7 +92,7 @@ void ClearAreaStore::dumpIdentity(const Message *message) const
@@ -92,7 +92,7 @@ void ClearAreaStore::dumpIdentity(const
ClearAreaMessage *clearArea = (ClearAreaMessage *) message;
......@@ -37,11 +33,9 @@ index 223a3b3..83b7281 100644
<< ", window " << clearArea -> window << ", x " << clearArea -> x
<< ", y " << clearArea -> y << ", width " << clearArea -> width
<< ", height " << clearArea -> height << ", size " << clearArea -> size_
diff --git a/nxcomp/Proxy.cpp b/nxcomp/Proxy.cpp
index 9b38661..4eb99cf 100644
--- a/nxcomp/Proxy.cpp
+++ b/nxcomp/Proxy.cpp
@@ -5176,7 +5176,7 @@ char *Proxy::handleSaveAllStores(const char *savePath) const
@@ -5176,7 +5176,7 @@ char *Proxy::handleSaveAllStores(const c
*(cacheDumpName + DEFAULT_STRING_LENGTH - 1) = '\0';
......
......@@ -17,7 +17,7 @@ Last-Update: 2012-01-11
/*
* Set here the required log level.
@@ -53,6 +54,7 @@
@@ -53,6 +54,7 @@ int nxagentLogoDepth;
int nxagentLogoWhite;
int nxagentLogoRed;
int nxagentLogoBlack;
......@@ -25,7 +25,7 @@ Last-Update: 2012-01-11
void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height);
@@ -166,6 +168,15 @@
@@ -166,6 +168,15 @@ void nxagentPaintLogo(Window win, GC gc,
XPoint m[12];
int w, h, c, w2, h2;
......@@ -41,7 +41,7 @@ Last-Update: 2012-01-11
#ifdef DEBUG
fprintf(stderr, "nxagenShowtLogo: Got called.\n");
#endif
@@ -218,75 +229,146 @@
@@ -218,75 +229,146 @@ void nxagentPaintLogo(Window win, GC gc,
XSetForeground(nxagentDisplay, gc, nxagentLogoRed);
XSetBackground(nxagentDisplay, gc, nxagentLogoWhite);
......@@ -230,7 +230,7 @@ Last-Update: 2012-01-11
#ifdef NXAGENT_LOGO_DEBUG
--- a/nx-X11/programs/Xserver/hw/nxagent/Display.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Display.c
@@ -1430,22 +1430,10 @@
@@ -1430,22 +1430,10 @@ FIXME: Use of nxagentParentWindow is str
g = pV.green_mask;
b = pV.blue_mask;
......@@ -257,7 +257,7 @@ Last-Update: 2012-01-11
#ifdef WATCH
@@ -2696,22 +2684,10 @@
@@ -2696,22 +2684,10 @@ Bool nxagentReconnectDisplay(void *p0)
g = pV.green_mask;
b = pV.blue_mask;
......@@ -286,7 +286,7 @@ Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/hw/nxagent/Splash.h
+++ b/nx-X11/programs/Xserver/hw/nxagent/Splash.h
@@ -33,6 +33,7 @@
@@ -33,6 +33,7 @@ extern int nxagentLogoDepth;
extern int nxagentLogoWhite;
extern int nxagentLogoRed;
extern int nxagentLogoBlack;
......@@ -296,7 +296,7 @@ Last-Update: 2012-01-11
--- a/nx-X11/programs/Xserver/os/oscolor.c
+++ b/nx-X11/programs/Xserver/os/oscolor.c
@@ -53,7 +53,19 @@
@@ -53,7 +53,19 @@ SOFTWARE.
#include <sys/stat.h>
#include <unistd.h>
......@@ -319,7 +319,7 @@ Last-Update: 2012-01-11
#endif
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -62,6 +62,7 @@
@@ -62,6 +62,7 @@ is" without express or implied warranty.
#include "globals.h"
#include "property.h"
......@@ -327,7 +327,7 @@ Last-Update: 2012-01-11
#include <X11/extensions/XKB.h>
@@ -138,8 +139,11 @@
@@ -138,8 +139,11 @@ extern Status XkbGetContro
#ifndef XKB_ALTERNATE_BASE_DIRECTORY
#define XKB_ALTERNATE_BASE_DIRECTORY "/usr/X11R6/lib/X11/xkb"
#endif
......@@ -341,7 +341,7 @@ Last-Update: 2012-01-11
#endif
#ifndef XKB_DFLT_RULES_FILE
#define XKB_DFLT_RULES_FILE "xfree86"
@@ -988,7 +992,10 @@
@@ -988,7 +992,10 @@ XkbError:
XkbGetControls(nxagentDisplay, XkbAllControlsMask, xkb);
......@@ -353,7 +353,7 @@ Last-Update: 2012-01-11
nxagentXkbConfigFilePath = malloc((nxagentXkbConfigFilePathSize + 1) * sizeof(char));
@@ -997,7 +1004,10 @@
@@ -997,7 +1004,10 @@ XkbError:
FatalError("nxagentKeyboardProc: malloc failed.");
}
......
......@@ -11,8 +11,6 @@ Subject: [PATCH 01/40] LZW decompress: fix for CVE-2011-2895 From
nx-X11/lib/font/fontfile/decompress.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/nx-X11/lib/font/fontfile/decompress.c b/nx-X11/lib/font/fontfile/decompress.c
index a4c5468..553b315 100644
--- a/nx-X11/lib/font/fontfile/decompress.c
+++ b/nx-X11/lib/font/fontfile/decompress.c
@@ -261,6 +261,8 @@ BufCompressedFill (BufFilePtr f)
......@@ -24,6 +22,3 @@ index a4c5468..553b315 100644
*stackp++ = file->tab_suffix[code];
code = file->tab_prefix[code];
}
--
2.1.4
......@@ -11,8 +11,6 @@ file.
nx-X11/programs/Xserver/os/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nx-X11/programs/Xserver/os/utils.c b/nx-X11/programs/Xserver/os/utils.c
index 9b2431a..79e49d5 100644
--- a/nx-X11/programs/Xserver/os/utils.c
+++ b/nx-X11/programs/Xserver/os/utils.c
@@ -483,7 +483,7 @@ LockServer(void)
......@@ -24,6 +22,3 @@ index 9b2431a..79e49d5 100644
if (lfd < 0) {
unlink(tmp);
FatalError("Can't read lock file %s\n", LockFile);
--
2.1.4
......@@ -31,7 +31,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
--- a/nx-X11/programs/Xserver/dix/dixfonts.c
+++ b/nx-X11/programs/Xserver/dix/dixfonts.c
@@ -1559,6 +1559,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1559,6 +1559,7 @@ doImageText(ClientPtr client, register I
GC *pGC;
unsigned char *data;
ITclosurePtr new_closure;
......@@ -39,7 +39,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
/* We're putting the client to sleep. We need to
save some state. Similar problem to that handled
@@ -1571,6 +1572,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1571,6 +1572,7 @@ doImageText(ClientPtr client, register I
err = BadAlloc;
goto bail;
}
......@@ -47,7 +47,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
*new_closure = *c;
c = new_closure;
@@ -1578,6 +1580,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1578,6 +1580,7 @@ doImageText(ClientPtr client, register I
if (!data)
{
xfree(c);
......@@ -55,7 +55,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
err = BadAlloc;
goto bail;
}
@@ -1589,6 +1592,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1589,6 +1592,7 @@ doImageText(ClientPtr client, register I
{
xfree(c->data);
xfree(c);
......@@ -63,7 +63,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
err = BadAlloc;
goto bail;
}
@@ -1602,6 +1606,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1602,6 +1606,7 @@ doImageText(ClientPtr client, register I
FreeScratchGC(pGC);
xfree(c->data);
xfree(c);
......@@ -73,7 +73,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
}
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdixfonts.c
@@ -1711,6 +1711,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1711,6 +1711,7 @@ doImageText(client, c)
GC *pGC;
unsigned char *data;
ITclosurePtr new_closure;
......@@ -81,7 +81,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
/* We're putting the client to sleep. We need to
save some state. Similar problem to that handled
@@ -1723,6 +1724,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1723,6 +1724,7 @@ doImageText(client, c)
err = BadAlloc;
goto bail;
}
......@@ -89,7 +89,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
*new_closure = *c;
c = new_closure;
@@ -1730,6 +1732,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1730,6 +1732,7 @@ doImageText(client, c)
if (!data)
{
xfree(c);
......@@ -97,7 +97,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
err = BadAlloc;
goto bail;
}
@@ -1741,6 +1744,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1741,6 +1744,7 @@ doImageText(client, c)
{
xfree(c->data);
xfree(c);
......@@ -105,7 +105,7 @@ v3: backport v2 to nx-libs 3.5.0.x (Mihai Moldovan)
err = BadAlloc;
goto bail;
}
@@ -1759,6 +1763,7 @@ doImageText(ClientPtr client, register ITclosurePtr c)
@@ -1759,6 +1763,7 @@ doImageText(client, c)
FreeScratchGC(pGC);
xfree(c->data);
xfree(c);
......
......@@ -12,11 +12,9 @@ Fixes cppcheck warning:
nx-X11/lib/font/bitmap/bdfread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/bitmap/bdfread.c b/nx-X11/lib/font/bitmap/bdfread.c
index a6f0c1e..bccabd7 100644
--- a/nx-X11/lib/font/bitmap/bdfread.c
+++ b/nx-X11/lib/font/bitmap/bdfread.c
@@ -344,7 +344,7 @@ bdfReadCharacters(FontFilePtr file, FontPtr pFont, bdfFileState *pState,
@@ -344,7 +344,7 @@ bdfReadCharacters(FontFilePtr file, Font
char charName[100];
int ignore;
......@@ -25,6 +23,3 @@ index a6f0c1e..bccabd7 100644
bdfError("bad character name in BDF file\n");
goto BAILOUT; /* bottom of function, free and return error */
}
--
2.1.4
......@@ -22,11 +22,9 @@ int used to store the size.
nx-X11/lib/font/fontfile/fontdir.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/nx-X11/lib/font/fontfile/fontdir.c b/nx-X11/lib/font/fontfile/fontdir.c
index 8f75d8b..899ff05 100644
--- a/nx-X11/lib/font/fontfile/fontdir.c
+++ b/nx-X11/lib/font/fontfile/fontdir.c
@@ -185,6 +185,11 @@ FontFileAddEntry(FontTablePtr table, FontEntryPtr prototype)
@@ -185,6 +185,11 @@ FontFileAddEntry(FontTablePtr table, Fon
if (table->sorted)
return (FontEntryPtr) 0; /* "cannot" happen */
if (table->used == table->size) {
......@@ -38,6 +36,3 @@ index 8f75d8b..899ff05 100644
newsize = table->size + 100;
entry = (FontEntryPtr) xrealloc(table->entries,
newsize * sizeof(FontEntryRec));
--
2.1.4
......@@ -19,11 +19,9 @@ free issues.
nx-X11/lib/font/fontfile/dirfile.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nx-X11/lib/font/fontfile/dirfile.c b/nx-X11/lib/font/fontfile/dirfile.c
index f390391..3a2fead 100644
--- a/nx-X11/lib/font/fontfile/dirfile.c
+++ b/nx-X11/lib/font/fontfile/dirfile.c
@@ -45,6 +45,7 @@ in this Software without prior written authorization from The Open Group.
@@ -45,6 +45,7 @@ in this Software without prior written a
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
......@@ -41,6 +39,3 @@ index f390391..3a2fead 100644
nsize = tokenSize ? (tokenSize << 1) : 64;
nbuf = (char *) xrealloc(tokenBuf, nsize);
if (!nbuf)
--
2.1.4
......@@ -19,11 +19,9 @@ v2: use xfree() instead of free() for nx-libs 3.6.x (Mihai Moldovan)
nx-X11/lib/font/fc/fserve.c | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 0d792c7..86b5753 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -2985,7 +2985,7 @@ _fs_recv_conn_setup (FSFpePtr conn)
@@ -2782,7 +2782,7 @@ _fs_recv_conn_setup (FSFpePtr conn)
int ret;
fsConnSetup *setup;
FSFpeAltPtr alts;
......@@ -32,7 +30,7 @@ index 0d792c7..86b5753 100644
int setup_len;
char *alt_save, *alt_names;
@@ -3012,9 +3012,9 @@ _fs_recv_conn_setup (FSFpePtr conn)
@@ -2809,9 +2809,9 @@ _fs_recv_conn_setup (FSFpePtr conn)
}
if (setup->num_alternates)
{
......@@ -44,7 +42,7 @@ index 0d792c7..86b5753 100644
if (alts)
{
alt_names = (char *) (setup + 1);
@@ -3023,10 +3023,25 @@ _fs_recv_conn_setup (FSFpePtr conn)
@@ -2820,10 +2820,25 @@ _fs_recv_conn_setup (FSFpePtr conn)
{
alts[i].subset = alt_names[0];
alt_len = alt_names[1];
......@@ -70,6 +68,3 @@ index 0d792c7..86b5753 100644
alt_names += _fs_pad_length (alt_len + 2);
}
conn->numAlts = setup->num_alternates;
--
2.1.4
......@@ -9,11 +9,9 @@ Subject: [PATCH 08/40] Don't crash when we receive an FS_Error from the font
nx-X11/lib/font/fc/fserve.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 0fdcc1d..c159b2b 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -2366,7 +2366,7 @@ fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2366,7 +2366,7 @@ fs_read_list_info(FontPathElementPtr fpe
_fs_free_props (&binfo->info);
rep = (fsListFontsWithXInfoReply *) fs_get_reply (conn, &ret);
......@@ -22,6 +20,3 @@ index 0fdcc1d..c159b2b 100644
{
if (ret == FSIO_BLOCK)
return StillWorking;
--
2.1.4
......@@ -12,11 +12,9 @@ that the reply was at least as long as the struct being cast to.
nx-X11/lib/font/fc/fserve.c | 44 ++++++++++++++++++++++++++++++++++++++------
1 file changed, 38 insertions(+), 6 deletions(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index c159b2b..ca10aa4 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -94,6 +94,12 @@ in this Software without prior written authorization from The Open Group.
@@ -94,6 +94,12 @@ in this Software without prior written a
(pci)->descent || \
(pci)->characterWidth)
......@@ -29,7 +27,7 @@ index c159b2b..ca10aa4 100644
extern void ErrorF(const char *f, ...);
static int fs_read_glyphs ( FontPathElementPtr fpe, FSBlockDataPtr blockrec );
@@ -209,9 +215,22 @@ _fs_add_rep_log (FSFpePtr conn, fsGenericReply *rep)
@@ -209,9 +215,22 @@ _fs_add_rep_log (FSFpePtr conn, fsGeneri
rep->sequenceNumber,
conn->reqbuffer[i].opcode);
}
......@@ -52,7 +50,7 @@ index c159b2b..ca10aa4 100644
#endif
static Bool
@@ -693,13 +712,15 @@ fs_read_open_font(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -693,13 +712,15 @@ fs_read_open_font(FontPathElementPtr fpe
int ret;
rep = (fsOpenBitmapFontReply *) fs_get_reply (conn, &ret);
......@@ -69,7 +67,7 @@ index c159b2b..ca10aa4 100644
return BadFontName;
}
@@ -835,13 +856,15 @@ fs_read_query_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -835,13 +856,15 @@ fs_read_query_info(FontPathElementPtr fp
int ret;
rep = (fsQueryXInfoReply *) fs_get_reply (conn, &ret);
......@@ -86,7 +84,7 @@ index c159b2b..ca10aa4 100644
return BadFontName;
}
@@ -962,13 +985,15 @@ fs_read_extent_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -962,13 +985,15 @@ fs_read_extent_info(FontPathElementPtr f
FontInfoRec *fi = &bfont->pfont->info;
rep = (fsQueryXExtents16Reply *) fs_get_reply (conn, &ret);
......@@ -103,7 +101,7 @@ index c159b2b..ca10aa4 100644
return BadFontName;
}
@@ -1833,13 +1858,15 @@ fs_read_glyphs(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -1833,13 +1858,15 @@ fs_read_glyphs(FontPathElementPtr fpe, F
unsigned long minchar, maxchar;
rep = (fsQueryXBitmaps16Reply *) fs_get_reply (conn, &ret);
......@@ -120,7 +118,7 @@ index c159b2b..ca10aa4 100644
goto bail;
}
@@ -2243,12 +2270,14 @@ fs_read_list(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2243,12 +2270,14 @@ fs_read_list(FontPathElementPtr fpe, FSB
int err;
rep = (fsListFontsReply *) fs_get_reply (conn, &ret);
......@@ -136,7 +134,7 @@ index c159b2b..ca10aa4 100644
return AllocError;
}
data = (char *) rep + SIZEOF (fsListFontsReply);
@@ -2366,12 +2395,15 @@ fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2366,12 +2395,15 @@ fs_read_list_info(FontPathElementPtr fpe
_fs_free_props (&binfo->info);
rep = (fsListFontsWithXInfoReply *) fs_get_reply (conn, &ret);
......@@ -153,6 +151,3 @@ index c159b2b..ca10aa4 100644
goto done;
}
/*
--
2.1.4
......@@ -24,11 +24,9 @@ font server trying to feed us more than (the somewhat arbitrary)
nx-X11/lib/font/fc/fserve.c | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index ca10aa4..7762653 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -100,6 +100,9 @@ in this Software without prior written authorization from The Open Group.
@@ -100,6 +100,9 @@ in this Software without prior written a
*/
#define LENGTHOF(r) (SIZEOF(r) >> 2)
......@@ -60,6 +58,3 @@ index ca10aa4..7762653 100644
ret = _fs_start_read (conn, rep->length << 2, &buf);
if (ret != FSIO_READY)
{
--
2.1.4
......@@ -16,11 +16,9 @@ v2: apply correctly on nx-libs 3.6.x (Mihai Moldovan)
nx-X11/lib/font/fc/fserve.c | 43 +++++++++++++++++++++++++++++++++++++++---
2 files changed, 54 insertions(+), 8 deletions(-)
diff --git a/nx-X11/lib/font/fc/fsconvert.c b/nx-X11/lib/font/fc/fsconvert.c
index 9a5e194..afa2c32 100644
--- a/nx-X11/lib/font/fc/fsconvert.c
+++ b/nx-X11/lib/font/fc/fsconvert.c
@@ -123,6 +123,10 @@ _fs_convert_props(fsPropInfo *pi, fsPropOffset *po, pointer pd,
@@ -123,6 +123,10 @@ _fs_convert_props(fsPropInfo *pi, fsProp
for (i = 0; i < nprops; i++, dprop++, is_str++)
{
memcpy(&local_off, off_adr, SIZEOF(fsPropOffset));
......@@ -31,7 +29,7 @@ index 9a5e194..afa2c32 100644
dprop->name = MakeAtom(&pdc[local_off.name.position],
local_off.name.length, 1);
if (local_off.type != PropTypeString) {
@@ -130,15 +134,20 @@ _fs_convert_props(fsPropInfo *pi, fsPropOffset *po, pointer pd,
@@ -130,15 +134,20 @@ _fs_convert_props(fsPropInfo *pi, fsProp
dprop->value = local_off.value.position;
} else {
*is_str = TRUE;
......@@ -57,11 +55,9 @@ index 9a5e194..afa2c32 100644
}
}
off_adr += SIZEOF(fsPropOffset);
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 9e652d2..75cabdd 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -866,6 +866,7 @@ fs_read_query_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -865,6 +865,7 @@ fs_read_query_info(FontPathElementPtr fp
FSFpePtr conn = (FSFpePtr) fpe->private;
fsQueryXInfoReply *rep;
char *buf;
......@@ -69,7 +65,7 @@ index 9e652d2..75cabdd 100644
fsPropInfo *pi;
fsPropOffset *po;
pointer pd;
@@ -896,7 +897,10 @@ fs_read_query_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -895,7 +896,10 @@ fs_read_query_info(FontPathElementPtr fp
buf = (char *) rep;
buf += SIZEOF(fsQueryXInfoReply);
......@@ -81,7 +77,7 @@ index 9e652d2..75cabdd 100644
/* move the data over */
fsUnpack_XFontInfoHeader(rep, pInfo);
@@ -904,19 +908,52 @@ fs_read_query_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -903,19 +907,52 @@ fs_read_query_info(FontPathElementPtr fp
_fs_init_fontinfo(conn, pInfo);
/* Compute offsets into the reply */
......@@ -136,6 +132,3 @@ index 9e652d2..75cabdd 100644
if (ret == -1)
{
fs_cleanup_bfont (bfont);
--
2.1.4
......@@ -13,11 +13,9 @@ calculation which can lead to memory corruption.
nx-X11/lib/font/fc/fserve.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 2a6f6c9..639964c 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -73,6 +73,7 @@ in this Software without prior written authorization from The Open Group.
@@ -73,6 +73,7 @@ in this Software without prior written a
#include "fservestr.h"
#include <X11/fonts/fontutil.h>
#include <errno.h>
......@@ -25,7 +23,7 @@ index 2a6f6c9..639964c 100644
#include <time.h>
#define Time_t time_t
@@ -1060,7 +1061,16 @@ fs_read_extent_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -1061,7 +1062,16 @@ fs_read_extent_info(FontPathElementPtr f
numInfos *= 2;
haveInk = TRUE;
}
......@@ -43,6 +41,3 @@ index 2a6f6c9..639964c 100644
if (!pCI)
{
--
2.1.4
......@@ -11,11 +11,9 @@ which can cause memory corruption.
nx-X11/lib/font/fc/fsconvert.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/fc/fsconvert.c b/nx-X11/lib/font/fc/fsconvert.c
index d41e0b8..afa2c32 100644
--- a/nx-X11/lib/font/fc/fsconvert.c
+++ b/nx-X11/lib/font/fc/fsconvert.c
@@ -762,7 +762,12 @@ fs_alloc_glyphs (FontPtr pFont, int size)
@@ -762,7 +762,12 @@ fs_alloc_glyphs (FontPtr pFont, int size
FSGlyphPtr glyphs;
FSFontPtr fsfont = (FSFontPtr) pFont->fontPrivate;
......@@ -29,6 +27,3 @@ index d41e0b8..afa2c32 100644
glyphs->next = fsfont->glyphs;
fsfont->glyphs = glyphs;
return (pointer) (glyphs + 1);
--
2.1.4
......@@ -12,11 +12,9 @@ the specified reply length.
nx-X11/lib/font/fc/fserve.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 639964c..79de4f3 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -1069,6 +1069,16 @@ fs_read_extent_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -1070,6 +1070,16 @@ fs_read_extent_info(FontPathElementPtr f
#endif
pCI = NULL;
}
......@@ -33,6 +31,3 @@ index 639964c..79de4f3 100644
else
pCI = malloc(sizeof(CharInfoRec) * numInfos);
--
2.1.4
......@@ -13,11 +13,9 @@ bitmaps in the reply.
nx-X11/lib/font/fc/fserve.c | 29 ++++++++++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 79de4f3..26218e5 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -1916,6 +1916,7 @@ fs_read_glyphs(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -1917,6 +1917,7 @@ fs_read_glyphs(FontPathElementPtr fpe, F
FontInfoPtr pfi = &pfont->info;
fsQueryXBitmaps16Reply *rep;
char *buf;
......@@ -25,7 +23,7 @@ index 79de4f3..26218e5 100644
fsOffset32 *ppbits;
fsOffset32 local_off;
char *off_adr;
@@ -1947,9 +1948,33 @@ fs_read_glyphs(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -1948,9 +1949,33 @@ fs_read_glyphs(FontPathElementPtr fpe, F
buf = (char *) rep;
buf += SIZEOF (fsQueryXBitmaps16Reply);
......@@ -59,7 +57,7 @@ index 79de4f3..26218e5 100644
pbitmaps = (pointer ) buf;
if (blockrec->type == FS_LOAD_GLYPHS)
@@ -2007,7 +2032,9 @@ fs_read_glyphs(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2008,7 +2033,9 @@ fs_read_glyphs(FontPathElementPtr fpe, F
*/
if (NONZEROMETRICS(&fsdata->encoding[minchar].metrics))
{
......@@ -70,6 +68,3 @@ index 79de4f3..26218e5 100644
{
bits = allbits;
allbits += local_off.length;
--
2.1.4
......@@ -13,11 +13,9 @@ over the strings in the reply.
nx-X11/lib/font/fc/fserve.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 26218e5..60d9017 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -2365,6 +2365,7 @@ fs_read_list(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2366,6 +2366,7 @@ fs_read_list(FontPathElementPtr fpe, FSB
FSBlockedListPtr blist = (FSBlockedListPtr) blockrec->data;
fsListFontsReply *rep;
char *data;
......@@ -25,7 +23,7 @@ index 26218e5..60d9017 100644
int length,
i,
ret;
@@ -2382,16 +2383,30 @@ fs_read_list(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2383,16 +2384,30 @@ fs_read_list(FontPathElementPtr fpe, FSB
return AllocError;
}
data = (char *) rep + SIZEOF (fsListFontsReply);
......@@ -56,6 +54,3 @@ index 26218e5..60d9017 100644
}
_fs_done_read (conn, rep->length << 2);
return err;
--
2.1.4
......@@ -13,11 +13,9 @@ bound reads when looping over these items in the reply.
nx-X11/lib/font/fc/fserve.c | 56 ++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 55 insertions(+), 1 deletion(-)
diff --git a/nx-X11/lib/font/fc/fserve.c b/nx-X11/lib/font/fc/fserve.c
index 60d9017..6ba3ad4 100644
--- a/nx-X11/lib/font/fc/fserve.c
+++ b/nx-X11/lib/font/fc/fserve.c
@@ -2500,6 +2500,7 @@ fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2501,6 +2501,7 @@ fs_read_list_info(FontPathElementPtr fpe
FSBlockedListInfoPtr binfo = (FSBlockedListInfoPtr) blockrec->data;
fsListFontsWithXInfoReply *rep;
char *buf;
......@@ -25,7 +23,7 @@ index 60d9017..6ba3ad4 100644
FSFpePtr conn = (FSFpePtr) fpe->private;
fsPropInfo *pi;
fsPropOffset *po;
@@ -2536,7 +2537,8 @@ fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2537,7 +2538,8 @@ fs_read_list_info(FontPathElementPtr fpe
}
buf = (char *) rep + SIZEOF (fsListFontsWithXInfoReply);
......@@ -35,7 +33,7 @@ index 60d9017..6ba3ad4 100644
/*
* The original FS implementation didn't match
* the spec, version 1 was respecified to match the FS.
@@ -2544,19 +2546,71 @@ fs_read_list_info(FontPathElementPtr fpe, FSBlockDataPtr blockrec)
@@ -2545,19 +2547,71 @@ fs_read_list_info(FontPathElementPtr fpe
*/
if (conn->fsMajorVersion <= 1)
{
......@@ -107,6 +105,3 @@ index 60d9017..6ba3ad4 100644
}
#ifdef DEBUG
--
2.1.4
......@@ -23,8 +23,6 @@ Conflicts:
nx-X11/programs/Xserver/os/rpcauth.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/nx-X11/programs/Xserver/os/rpcauth.c b/nx-X11/programs/Xserver/os/rpcauth.c
index 3c5cb59..a12931e 100644
--- a/nx-X11/programs/Xserver/os/rpcauth.c
+++ b/nx-X11/programs/Xserver/os/rpcauth.c
@@ -78,6 +78,10 @@ authdes_ezdecode(char *inmsg, int len)
......@@ -38,6 +36,3 @@ index 3c5cb59..a12931e 100644
memmove(temp_inmsg, inmsg, len);
memset((char *)&msg, 0, sizeof(msg));
--
2.1.4
......@@ -40,7 +40,7 @@ Conflicts:
return BadLength;
--- a/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/NXdispatch.c
@@ -2630,7 +2630,9 @@ ProcPutImage(register ClientPtr client)
@@ -2630,7 +2630,9 @@ ProcPutImage(client)
tmpImage = (char *)&stuff[1];
lengthProto = length;
......
......@@ -25,8 +25,6 @@ Conflicts:
nx-X11/programs/Xserver/os/access.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/nx-X11/programs/Xserver/os/access.c b/nx-X11/programs/Xserver/os/access.c
index b6a70a7..532a2f8 100644
--- a/nx-X11/programs/Xserver/os/access.c
+++ b/nx-X11/programs/Xserver/os/access.c
@@ -1719,6 +1719,10 @@ GetHosts (
......@@ -49,6 +47,3 @@ index b6a70a7..532a2f8 100644
((xHostEntry *)ptr)->family = host->family;
((xHostEntry *)ptr)->length = len;
ptr += sizeof(xHostEntry);
--
2.1.4
......@@ -24,8 +24,6 @@ Conflicts:
nx-X11/programs/Xserver/mi/miregion.c | 39 ++++++++++++++++++++---------
2 files changed, 34 insertions(+), 15 deletions(-)
diff --git a/nx-X11/programs/Xserver/include/regionstr.h b/nx-X11/programs/Xserver/include/regionstr.h
index 000bf3f..cf41170 100644
--- a/nx-X11/programs/Xserver/include/regionstr.h
+++ b/nx-X11/programs/Xserver/include/regionstr.h
@@ -53,6 +53,9 @@ SOFTWARE.
......@@ -60,8 +58,6 @@ index 000bf3f..cf41170 100644
{ \
(_pReg)->data->size = (_size); \
(_pReg)->data->numRects = 0; \
diff --git a/nx-X11/programs/Xserver/mi/miregion.c b/nx-X11/programs/Xserver/mi/miregion.c
index df33248..5ec4ec5 100644
--- a/nx-X11/programs/Xserver/mi/miregion.c
+++ b/nx-X11/programs/Xserver/mi/miregion.c
@@ -172,7 +172,6 @@ Equipment Corporation.
......@@ -72,7 +68,7 @@ index df33248..5ec4ec5 100644
#define xfreeData(reg) if ((reg)->data && (reg)->data->size) xfree((reg)->data)
#define RECTALLOC_BAIL(pReg,n,bail) \
@@ -209,8 +208,9 @@ if (!(pReg)->data || (((pReg)->data->numRects + (n)) > (pReg)->data->size)) \
@@ -209,8 +208,9 @@ if (!(pReg)->data || (((pReg)->data->num
#define DOWNSIZE(reg,numRects) \
if (((numRects) < ((reg)->data->size >> 1)) && ((reg)->data->size > 50)) \
{ \
......@@ -200,6 +196,3 @@ index df33248..5ec4ec5 100644
if (!dst->data)
return miRegionBreak (dst);
}
--
2.1.4
......@@ -18,8 +18,6 @@ v3: backport to nx-libs 3.6.x (Mike DePaulo)
nx-X11/programs/Xserver/include/dix.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/nx-X11/programs/Xserver/include/dix.h b/nx-X11/programs/Xserver/include/dix.h
index 1b8fc42..d82979c 100644
--- a/nx-X11/programs/Xserver/include/dix.h
+++ b/nx-X11/programs/Xserver/include/dix.h
@@ -50,6 +50,8 @@ SOFTWARE.
......@@ -41,6 +39,3 @@ index 1b8fc42..d82979c 100644
return(BadLength)
#define LEGAL_NEW_RESOURCE(id,client)\
--
2.1.4
......@@ -27,8 +27,6 @@ Conflicts:
nx-X11/programs/Xserver/dbe/dbe.c | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/nx-X11/programs/Xserver/dbe/dbe.c b/nx-X11/programs/Xserver/dbe/dbe.c
index c0d6131..5a1e9b0 100644
--- a/nx-X11/programs/Xserver/dbe/dbe.c
+++ b/nx-X11/programs/Xserver/dbe/dbe.c
@@ -725,8 +725,8 @@ ProcDbeSwapBuffers(client)
......@@ -75,6 +73,3 @@ index c0d6131..5a1e9b0 100644
if (stuff->n != 0)
{
--
2.1.4
......@@ -45,8 +45,6 @@ Conflicts:
nx-X11/programs/Xserver/include/dix.h | 4 ++++
4 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/nx-X11/programs/Xserver/Xi/chgdctl.c b/nx-X11/programs/Xserver/Xi/chgdctl.c
index 63a3c9c..144a51e 100644
--- a/nx-X11/programs/Xserver/Xi/chgdctl.c
+++ b/nx-X11/programs/Xserver/Xi/chgdctl.c
@@ -87,7 +87,7 @@ SProcXChangeDeviceControl(client)
......@@ -67,8 +65,6 @@ index 63a3c9c..144a51e 100644
len = stuff->length - (sizeof(xChangeDeviceControlReq) >>2);
dev = LookupDeviceIntRec (stuff->deviceid);
diff --git a/nx-X11/programs/Xserver/Xi/chgfctl.c b/nx-X11/programs/Xserver/Xi/chgfctl.c
index fe8bd1f..3ffac39 100644
--- a/nx-X11/programs/Xserver/Xi/chgfctl.c
+++ b/nx-X11/programs/Xserver/Xi/chgfctl.c
@@ -160,6 +160,8 @@ ProcXChangeFeedbackControl(client)
......@@ -80,8 +76,6 @@ index fe8bd1f..3ffac39 100644
swaps(&f->num_keysyms,n);
}
if (len != ((sizeof(xStringFeedbackCtl)>>2) + f->num_keysyms))
diff --git a/nx-X11/programs/Xserver/Xi/sendexev.c b/nx-X11/programs/Xserver/Xi/sendexev.c
index 9b441f2..0b2a701 100644
--- a/nx-X11/programs/Xserver/Xi/sendexev.c
+++ b/nx-X11/programs/Xserver/Xi/sendexev.c
@@ -154,6 +154,9 @@ ProcXSendExtensionEvent (client)
......@@ -94,8 +88,6 @@ index 9b441f2..0b2a701 100644
/* The client's event type must be one defined by an extension. */
first = ((xEvent *) &stuff[1]);
diff --git a/nx-X11/programs/Xserver/include/dix.h b/nx-X11/programs/Xserver/include/dix.h
index d82979c..9fe575e 100644
--- a/nx-X11/programs/Xserver/include/dix.h
+++ b/nx-X11/programs/Xserver/include/dix.h
@@ -73,6 +73,10 @@ SOFTWARE.
......@@ -109,6 +101,3 @@ index d82979c..9fe575e 100644
#define REQUEST_FIXED_SIZE(req, n)\
if (((sizeof(req) >> 2) > client->req_len) || \
((n >> 2) >= client->req_len) || \
--
2.1.4
......@@ -12,8 +12,6 @@ Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
nx-X11/programs/Xserver/Xext/xcmisc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nx-X11/programs/Xserver/Xext/xcmisc.c b/nx-X11/programs/Xserver/Xext/xcmisc.c
index c7bb72d..0a9a090 100644
--- a/nx-X11/programs/Xserver/Xext/xcmisc.c
+++ b/nx-X11/programs/Xserver/Xext/xcmisc.c
@@ -228,6 +228,7 @@ SProcXCMiscGetXIDList(client)
......@@ -24,6 +22,3 @@ index c7bb72d..0a9a090 100644
swaps(&stuff->length, n);
swapl(&stuff->count, n);
--
2.1.4
......@@ -107,7 +107,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->drawable, n);
@@ -1529,6 +1540,7 @@ SProcXvSelectVideoNotify(ClientPtr client)
@@ -1529,6 +1540,7 @@ SProcXvSelectVideoNotify(ClientPtr clien
{
register char n;
REQUEST(xvSelectVideoNotifyReq);
......@@ -115,7 +115,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->drawable, n);
return ProcXvSelectVideoNotify(client);
@@ -1539,6 +1551,7 @@ SProcXvSelectPortNotify(ClientPtr client)
@@ -1539,6 +1551,7 @@ SProcXvSelectPortNotify(ClientPtr client
{
register char n;
REQUEST(xvSelectPortNotifyReq);
......@@ -131,7 +131,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->drawable, n);
@@ -1560,6 +1574,7 @@ SProcXvSetPortAttribute(ClientPtr client)
@@ -1560,6 +1574,7 @@ SProcXvSetPortAttribute(ClientPtr client
{
register char n;
REQUEST(xvSetPortAttributeReq);
......@@ -139,7 +139,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->attribute, n);
@@ -1571,6 +1586,7 @@ SProcXvGetPortAttribute(ClientPtr client)
@@ -1571,6 +1586,7 @@ SProcXvGetPortAttribute(ClientPtr client
{
register char n;
REQUEST(xvGetPortAttributeReq);
......@@ -155,7 +155,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swaps(&stuff->vid_w, n);
@@ -1596,6 +1613,7 @@ SProcXvQueryPortAttributes(ClientPtr client)
@@ -1596,6 +1613,7 @@ SProcXvQueryPortAttributes(ClientPtr cli
{
register char n;
REQUEST(xvQueryPortAttributesReq);
......@@ -163,7 +163,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
return ProcXvQueryPortAttributes(client);
@@ -1606,6 +1624,7 @@ SProcXvQueryImageAttributes(ClientPtr client)
@@ -1606,6 +1624,7 @@ SProcXvQueryImageAttributes(ClientPtr cl
{
register char n;
REQUEST(xvQueryImageAttributesReq);
......@@ -171,7 +171,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->id, n);
swaps(&stuff->width, n);
@@ -1618,6 +1637,7 @@ SProcXvListImageFormats(ClientPtr client)
@@ -1618,6 +1637,7 @@ SProcXvListImageFormats(ClientPtr client
{
register char n;
REQUEST(xvListImageFormatsReq);
......@@ -269,7 +269,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->drawable, n);
@@ -1583,6 +1594,7 @@ SProcXvSelectVideoNotify(ClientPtr client)
@@ -1583,6 +1594,7 @@ SProcXvSelectVideoNotify(ClientPtr clien
{
register char n;
REQUEST(xvSelectVideoNotifyReq);
......@@ -277,7 +277,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->drawable, n);
return ProcXvSelectVideoNotify(client);
@@ -1593,6 +1605,7 @@ SProcXvSelectPortNotify(ClientPtr client)
@@ -1593,6 +1605,7 @@ SProcXvSelectPortNotify(ClientPtr client
{
register char n;
REQUEST(xvSelectPortNotifyReq);
......@@ -293,7 +293,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->drawable, n);
@@ -1614,6 +1628,7 @@ SProcXvSetPortAttribute(ClientPtr client)
@@ -1614,6 +1628,7 @@ SProcXvSetPortAttribute(ClientPtr client
{
register char n;
REQUEST(xvSetPortAttributeReq);
......@@ -301,7 +301,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swapl(&stuff->attribute, n);
@@ -1625,6 +1640,7 @@ SProcXvGetPortAttribute(ClientPtr client)
@@ -1625,6 +1640,7 @@ SProcXvGetPortAttribute(ClientPtr client
{
register char n;
REQUEST(xvGetPortAttributeReq);
......@@ -317,7 +317,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
swaps(&stuff->vid_w, n);
@@ -1650,6 +1667,7 @@ SProcXvQueryPortAttributes(ClientPtr client)
@@ -1650,6 +1667,7 @@ SProcXvQueryPortAttributes(ClientPtr cli
{
register char n;
REQUEST(xvQueryPortAttributesReq);
......@@ -325,7 +325,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->port, n);
return ProcXvQueryPortAttributes(client);
@@ -1660,6 +1678,7 @@ SProcXvQueryImageAttributes(ClientPtr client)
@@ -1660,6 +1678,7 @@ SProcXvQueryImageAttributes(ClientPtr cl
{
register char n;
REQUEST(xvQueryImageAttributesReq);
......@@ -333,7 +333,7 @@ Conflicts:
swaps(&stuff->length, n);
swapl(&stuff->id, n);
swaps(&stuff->width, n);
@@ -1672,6 +1691,7 @@ SProcXvListImageFormats(ClientPtr client)
@@ -1672,6 +1691,7 @@ SProcXvListImageFormats(ClientPtr client
{
register char n;
REQUEST(xvListImageFormatsReq);
......
......@@ -15,11 +15,9 @@ Conflicts:
nx-X11/programs/Xserver/xfixes/select.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/nx-X11/programs/Xserver/xfixes/select.c b/nx-X11/programs/Xserver/xfixes/select.c
index c72e19e..4b8bd01 100755
--- a/nx-X11/programs/Xserver/xfixes/select.c
+++ b/nx-X11/programs/Xserver/xfixes/select.c
@@ -216,6 +216,7 @@ SProcXFixesSelectSelectionInput (ClientPtr client)
@@ -216,6 +216,7 @@ SProcXFixesSelectSelectionInput (ClientP
register int n;
REQUEST(xXFixesSelectSelectionInputReq);
......@@ -27,6 +25,3 @@ index c72e19e..4b8bd01 100755
swaps(&stuff->length, n);
swapl(&stuff->window, n);
swapl(&stuff->selection, n);
--
2.1.4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment