summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-02-09gitlab CI: stop requiring Signed-off-by in commitsHEADmasterAlan Coopersmith1-2/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-10-15smproxy 1.0.7smproxy-1.0.7Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14CheckFullyQuantifiedName: improve gethostname() handlingAlan Coopersmith1-3/+10
Handle errors and use HOST_NAME_MAX for the buffer size if it is defined by <limits.h> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14CheckFullyQuantifiedName: return unqualified name if alloc failsAlan Coopersmith1-2/+3
Makes a failure to allocate by asprintf() match other failure cases and return the unqualified name instead of NULL. Fixes gcc warning: smproxy.c: In function ‘FinishSaveYourself’: smproxy.c:269:31: warning: ‘%s’ directive argument is null [-Wformat-truncation=] "rstart-rsh/%s", fullyQuantifiedName); ^~ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Use calloc instead of malloc to allocate arraysAlan Coopersmith2-3/+3
Most important in ReadProxyFileEntry, if we goto give_up before we finish initializing the array, makes sure we don't try to free uninitialized pointers during cleanup pass. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Remove or correct obsolete castsAlan Coopersmith2-22/+18
Bring code up to C89 levels Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14NullIceErrorHandler: make arg names match between definition & declarationAlan Coopersmith1-1/+1
Solves cppcheck warning: [smproxy.c:73] -> [smproxy.c:448]: (style, inconclusive) Function 'NullIceErrorHandler' argument 3 names different: declaration 'offendingMinorOpCode' definition 'offendingMinorOpcode'. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2022-08-14Reduce variable scopes as suggested by cppcheckAlan Coopersmith2-14/+12
[save.c:203]: (style) The scope of the variable 'i' can be reduced. [save.c:457]: (style) The scope of the variable 'i' can be reduced. [smproxy.c:101]: (style) The scope of the variable 'i' can be reduced. [smproxy.c:1114]: (style) The scope of the variable 'client_window' can be reduced. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04Build xz tarballs instead of bzip2Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2021-12-04gitlab CI: add a basic build testAlan Coopersmith1-0/+98
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-21Update configure.ac bug URL for gitlab migrationAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2018-11-16Update README for gitlab migrationAlan Coopersmith3-26/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2017-01-26autogen: add default patch prefixMihail Konev1-0/+3
Signed-off-by: Mihail Konev <k.mvc@ya.ru>
2017-01-26autogen.sh: use quoted string variablesEmil Velikov1-4/+4
Place quotes around the $srcdir, $ORIGDIR and $0 variables to prevent fall-outs, when they contain space. Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2017-01-26autogen.sh: use exec instead of waiting for configure to finishPeter Hutterer1-1/+1
Syncs the invocation of configure with the one from the server. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2015-04-16smproxy 1.0.6smproxy-1.0.6Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-11-05Remove unneeded checks for X_NOT_POSIXAlan Coopersmith1-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02autogen.sh: Honor NOCONFIGURE=1Alan Coopersmith1-2/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-02configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-2/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Add -version option to print program versionAlan Coopersmith2-2/+10
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Print which option was in error along with usage messageAlan Coopersmith1-2/+12
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Simplify & unify variants of unique_filenameAlan Coopersmith1-45/+33
Variants depend on whether system has mkstemp, mktemp or tempnam Also fixes some const char warnings in this code. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Convert sprintf calls to asprintf or snprintfAlan Coopersmith2-20/+20
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Add local copy of asprintf()Alan Coopersmith3-1/+56
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23config: Add missing AC_CONFIG_SRCDIRAlan Coopersmith1-3/+5
Regroup AC statements under the Autoconf initialization section. Regroup AM statements under the Automake initialization section. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2013-11-23Replace #ifdef X_NOT_POSIX with explicit check for mktemp functionAlan Coopersmith2-6/+6
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-06-29smproxy 1.0.5smproxy-1.0.5Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2011-05-06Fix a possible NULL dereference in an error handlerJeremy Huddleston1-7/+9
save.c:255:10: warning: Array access (via field 'wm_command') results in a null pointer dereference if (entry->wm_command[i]) ^ ~~~~~~~~~~ 1 warning generated. Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
2011-01-28Explicitly depend on libICE since ICE functions are called directlyAlan Coopersmith1-1/+1
Without this fix, once Bug 33390 removes "Requires: ice" from the sm.pc file, smproxy fails to build with undefined symbol errors for IceSetErrorHandler, IceConnectionNumber, and IceProcessMessages. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Julien Cristau <jcristau@debian.org>
2011-01-19config: move man pages into their own directoryGaetan Nadon4-18/+17
Use services provided by XORG_MANPAGE_SECTIONS. Use standard Makefile for man pages. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: replace hard coded man page section with substitution stringsGaetan Nadon1-1/+1
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-13man: remove trailing spaces and tabsGaetan Nadon1-5/+5
Using s/[ \t]*$// Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2011-01-12config: replace deprecated AM_CONFIG_HEADER with AC_CONFIG_HEADERSGaetan Nadon1-1/+1
This silences an Autoconf warning
2010-10-21smproxy 1.0.4smproxy-1.0.4Alan Coopersmith1-1/+2
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-10-06Purge cvs tags.Jesse Adkins4-11/+0
Signed-off-by: Jesse Adkins <jesserayadkins@gmail.com>
2010-09-22Use AC_CHECK_FUNCS / default name for mkstempAlan Coopersmith2-8/+7
No longer need to maintain #ifdef compatibility with the names used in the monolith Imakefiles. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-22config: Remove unnecessary calls from configure.acAlan Coopersmith1-5/+0
AC_PROG_CC & AC_PROG_INSTALL are provided by XORG_DEFAULT_OPTIONS now PKG_CONFIG_MODULES handles AC_SUBST of the CFLAGS & LIBS variables Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-22config: upgrade to util-macros 1.8 for additional man page supportAlan Coopersmith2-22/+4
Use MAN_SUBST now supplied in XORG_MANPAGE_SECTIONS The value of MAN_SUBST is the same for all X.Org packages. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-09-22config: update AC_PREREQ statement to 2.60Gaetan Nadon1-1/+1
Unrelated to the previous patches, the new value simply reflects the reality that the minimum level for autoconf to configure all x.org modules is 2.60 dated June 2006. ftp://ftp.gnu.org/gnu/autoconf/autoconf-2.60.tar.gz Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2010-06-21Only need the libXmuu subset, not the full libXmuAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-04-16Add smproxy dependency on libSM to PKG_CHECK_MODULESAlan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2010-01-07COPYING: replace stub with actual copyright noticesGaetan Nadon1-8/+17
Refer to smproxy.c. Copyright 1994, 1998 The Open Group Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
2009-11-26Makefile.am: add ChangeLog and INSTALL on MAINTAINERCLEANFILESGaetan Nadon1-0/+1
Now that the INSTALL file is generated. Allows running make maintainer-clean.
2009-10-28INSTALL, NEWS, README or AUTHORS files are missing/incorrect #24206Gaetan Nadon4-2/+5
Add missing INSTALL file. Use standard GNU file on building tarball README may have been updated Remove AUTHORS file as it is empty and no content available yet. Remove NEWS file as it is empty and no content available yet.
2009-10-26Makefile.am: ChangeLog not required: EXTRA_DIST or *CLEANFILES #24432Gaetan Nadon1-2/+0
ChangeLog filename is known to Automake and requires no further coding in the makefile.
2009-10-22.gitignore: use common defaults with custom section # 24239Gaetan Nadon1-11/+66
Using common defaults will reduce errors and maintenance. Only the very small or inexistent custom section need periodic maintenance when the structure of the component changes. Do not edit defaults.
2009-10-21This is not a GNU project, so declare it foreign.Jeremy Huddleston1-1/+1
On Wed, 2009-10-21 at 13:36 +1000, Peter Hutterer wrote: > On Tue, Oct 20, 2009 at 08:23:55PM -0700, Jeremy Huddleston wrote: > > I noticed an INSTALL file in xlsclients and libXvMC today, and it > > was quite annoying to work around since 'autoreconf -fvi' replaces > > it and git wants to commit it. Should these files even be in git? > > Can I nuke them for the betterment of humanity and since they get > > created by autoreconf anyways? > > See https://bugs.freedesktop.org/show_bug.cgi?id=24206 As an interim measure, replace AM_INIT_AUTOMAKE([dist-bzip2]) with AM_INIT_AUTOMAKE([foreign dist-bzip2]). This will prevent the generation of the INSTALL file. It is also part of the 24206 solution. Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
2009-10-16smproxy 1.0.3smproxy-1.0.3Alan Coopersmith1-1/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-12Migrate to xorg macros 1.3 & XORG_DEFAULT_OPTIONSAlan Coopersmith2-11/+7
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-10-01Add README with pointers to mailing lists, bugzilla, & gitAlan Coopersmith1-0/+26
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>