[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

xauth: Changes to 'debian-unstable'



 Makefile.am      |    2 -
 README           |   17 ++++++--------
 autogen.sh       |   12 ++++++----
 configure.ac     |    3 --
 debian/changelog |   16 ++++++++++++-
 debian/compat    |    2 -
 debian/control   |    7 ++----
 debian/rules     |    5 ----
 gethost.c        |   63 +++++++++++++++++++++++++++++++++++++++----------------
 parsedpy.c       |   31 +++++++++++++++++++++++++--
 process.c        |    5 +++-
 xauth.c          |    1 
 12 files changed, 115 insertions(+), 49 deletions(-)

New commits:
commit c45309bd0914abb8cd5b8ae094909d605f0ade13
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:47:41 2017 +0100

    Release to unstable

diff --git a/debian/changelog b/debian/changelog
index f34e883..55f24b1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-xauth (1:1.0.10-1) UNRELEASED; urgency=medium
+xauth (1:1.0.10-1) unstable; urgency=medium
 
   [ Colin Watson ]
   * Mark xauth Multi-Arch: foreign. (Closes: #695087)
@@ -15,7 +15,7 @@ xauth (1:1.0.10-1) UNRELEASED; urgency=medium
     - Rely on that to get autoreconf and verbose builds.
   * Bump Standards-Version to 4.1.1; no changes needed.
 
- -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
+ -- Emilio Pozuelo Monfort <pochu@debian.org>  Tue, 21 Nov 2017 20:47:37 +0100
 
 xauth (1:1.0.9-1) unstable; urgency=medium
 

commit 25f5ae202fc5c9cea01ecef6e68f252aa0f6e630
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:46:26 2017 +0100

    Bump Standards-Version to 4.1.1

diff --git a/debian/changelog b/debian/changelog
index fa138e1..f34e883 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,7 @@ xauth (1:1.0.10-1) UNRELEASED; urgency=medium
       filesystem. Closes: #596630, #684723.
   * Bump to debhelper compat 10.
     - Rely on that to get autoreconf and verbose builds.
+  * Bump Standards-Version to 4.1.1; no changes needed.
 
  -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
 
diff --git a/debian/control b/debian/control
index ab41764..10232e0 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends:
  libxmuu-dev (>= 1:1.0.1),
  xutils-dev (>= 1:7.5+4),
  cmdtest <!nocheck>,
-Standards-Version: 3.9.2
+Standards-Version: 4.1.1
 Vcs-Git: git://git.debian.org/git/pkg-xorg/app/xauth
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/app/xauth.git
 

commit 8a8861befa040a12b01088dacce407fbc8fdaae1
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:41:01 2017 +0100

    Let dh 10 enable autoreconf and verbose builds

diff --git a/debian/changelog b/debian/changelog
index e538206..fa138e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,7 @@ xauth (1:1.0.10-1) UNRELEASED; urgency=medium
     - Doesn't empty Xauthority file when there's no space left on the
       filesystem. Closes: #596630, #684723.
   * Bump to debhelper compat 10.
+    - Rely on that to get autoreconf and verbose builds.
 
  -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
 
diff --git a/debian/control b/debian/control
index 4f642ad..ab41764 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,6 @@ Priority: optional
 Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
 Build-Depends:
  debhelper (>= 10),
- dh-autoreconf,
  quilt,
  pkg-config,
  libx11-dev (>= 2:1.0.0),
diff --git a/debian/rules b/debian/rules
index 03746e6..d70b6f6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,5 @@ override_dh_install:
 override_dh_auto_test:
 	dh_auto_test -- VERBOSE=1
 
-override_dh_auto_configure:
-	dh_auto_configure -- --disable-silent-rules
-
 %:
-	dh $@ --with quilt,autoreconf --builddirectory=build/
+	dh $@ --with quilt --builddirectory=build/

commit 8289fdd26edb00e3466c18609f672dbc882a126e
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:40:17 2017 +0100

    Bump to debhelper compat 10

diff --git a/debian/changelog b/debian/changelog
index f703399..e538206 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ xauth (1:1.0.10-1) UNRELEASED; urgency=medium
   * New upstream release. Closes: #880487.
     - Doesn't empty Xauthority file when there's no space left on the
       filesystem. Closes: #596630, #684723.
+  * Bump to debhelper compat 10.
 
  -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
 
diff --git a/debian/compat b/debian/compat
index 45a4fb7..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-8
+10
diff --git a/debian/control b/debian/control
index 7d198aa..4f642ad 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: x11
 Priority: optional
 Maintainer: Debian X Strike Force <debian-x@lists.debian.org>
 Build-Depends:
- debhelper (>= 8),
+ debhelper (>= 10),
  dh-autoreconf,
  quilt,
  pkg-config,

commit d79bc7fd1f84332cc61a9e33ccfb2d3788ba7aba
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:32:39 2017 +0100

    New upstream release

diff --git a/debian/changelog b/debian/changelog
index 328bbc0..f703399 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-xauth (1:1.0.9-2) UNRELEASED; urgency=medium
+xauth (1:1.0.10-1) UNRELEASED; urgency=medium
 
   [ Colin Watson ]
   * Mark xauth Multi-Arch: foreign. (Closes: #695087)
@@ -7,6 +7,11 @@ xauth (1:1.0.9-2) UNRELEASED; urgency=medium
   * Cross satisfiable Build-Depends: annotate cmdtest with <!nocheck>
     (Closes: #840085).
 
+  [ Emilio Pozuelo Monfort ]
+  * New upstream release. Closes: #880487.
+    - Doesn't empty Xauthority file when there's no space left on the
+      filesystem. Closes: #596630, #684723.
+
  -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
 
 xauth (1:1.0.9-1) unstable; urgency=medium

commit c9ed0303692e877989b3f6b58d06135356e99e4e
Author: Emilio Pozuelo Monfort <pochu@debian.org>
Date:   Tue Nov 21 20:19:40 2017 +0100

    annotate cmdtest build-dependency with <!nocheck>

diff --git a/debian/changelog b/debian/changelog
index b85be53..328bbc0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,10 @@ xauth (1:1.0.9-2) UNRELEASED; urgency=medium
   [ Colin Watson ]
   * Mark xauth Multi-Arch: foreign. (Closes: #695087)
 
+  [ Helmut Grohne ]
+  * Cross satisfiable Build-Depends: annotate cmdtest with <!nocheck>
+    (Closes: #840085).
+
  -- Timo Aaltonen <tjaalton@debian.org>  Tue, 03 Mar 2015 17:36:05 +0200
 
 xauth (1:1.0.9-1) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index 056263e..7d198aa 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Build-Depends:
  libxext-dev (>= 1:1.0.0),
  libxmuu-dev (>= 1:1.0.1),
  xutils-dev (>= 1:7.5+4),
- cmdtest,
+ cmdtest <!nocheck>,
 Standards-Version: 3.9.2
 Vcs-Git: git://git.debian.org/git/pkg-xorg/app/xauth
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/app/xauth.git

commit 536d1003a5c4d5ac24cd3b8afd10492e4e6242df
Author: Matt Turner <mattst88@gmail.com>
Date:   Sun Jan 29 13:09:12 2017 -0800

    xauth 1.0.10
    
    Signed-off-by: Matt Turner <mattst88@gmail.com>

diff --git a/configure.ac b/configure.ac
index def3cd5..4bc43e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -22,7 +22,7 @@ dnl Process this file with autoconf to create configure.
 
 AC_PREREQ([2.60])
 AC_INIT([xauth],
-	[1.0.9],
+	[1.0.10],
 	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
 	[xauth])
 AM_INIT_AUTOMAKE([foreign dist-bzip2])

commit 72717ccee0b6bdbf161cc9d44abe3dc1d824fe46
Author: Matt Turner <mattst88@gmail.com>
Date:   Sun Jan 29 13:09:39 2017 -0800

    Build xauth before running tests.
    
    Otherwise make check fails if make hasn't previously been run.
    
    Signed-off-by: Matt Turner <mattst88@gmail.com>

diff --git a/Makefile.am b/Makefile.am
index 87360a5..9fec077 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,7 @@
 #  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 #  PERFORMANCE OF THIS SOFTWARE.
 
-SUBDIRS = man tests
+SUBDIRS = . man tests
 bin_PROGRAMS = xauth
 
 AM_CFLAGS = $(CWARNFLAGS) $(XAUTH_CFLAGS)

commit 4dee6a980fdc0174d3825389f95ac1f27c2427db
Author: Mihail Konev <k.mvc@ya.ru>
Date:   Thu Jan 26 14:00:20 2017 +1000

    autogen: add default patch prefix
    
    Signed-off-by: Mihail Konev <k.mvc@ya.ru>

diff --git a/autogen.sh b/autogen.sh
index 0006de8..8c0766c 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,6 +9,9 @@ cd "$srcdir"
 autoreconf -v --install || exit 1
 cd "$ORIGDIR" || exit $?
 
+git config --local --get format.subjectPrefix >/dev/null 2>&1 ||
+    git config --local format.subjectPrefix "PATCH app/xauth"
+
 if test -z "$NOCONFIGURE"; then
     exec "$srcdir"/configure "$@"
 fi

commit 4933bc594087c25dfbc9b1f6db46440f19d0b360
Author: Emil Velikov <emil.l.velikov@gmail.com>
Date:   Mon Mar 9 12:00:52 2015 +0000

    autogen.sh: use quoted string variables
    
    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>

diff --git a/autogen.sh b/autogen.sh
index fd9c59a..0006de8 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,14 +1,14 @@
 #! /bin/sh
 
-srcdir=`dirname $0`
+srcdir=`dirname "$0"`
 test -z "$srcdir" && srcdir=.
 
 ORIGDIR=`pwd`
-cd $srcdir
+cd "$srcdir"
 
 autoreconf -v --install || exit 1
-cd $ORIGDIR || exit $?
+cd "$ORIGDIR" || exit $?
 
 if test -z "$NOCONFIGURE"; then
-    exec $srcdir/configure "$@"
+    exec "$srcdir"/configure "$@"
 fi

commit eaeb306e67c23657f713b3ca48765d1c6ed99986
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Tue Jan 24 10:32:07 2017 +1000

    autogen.sh: use exec instead of waiting for configure to finish
    
    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>

diff --git a/autogen.sh b/autogen.sh
index fc34bd5..fd9c59a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -10,5 +10,5 @@ autoreconf -v --install || exit 1
 cd $ORIGDIR || exit $?
 
 if test -z "$NOCONFIGURE"; then
-    $srcdir/configure "$@"
+    exec $srcdir/configure "$@"
 fi

commit 179459471e83a0cd235a0c8ead99b3156390e00c
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Sun Jun 1 21:03:14 2014 -0700

    autogen.sh: Honor NOCONFIGURE=1
    
    See http://people.gnome.org/~walters/docs/build-api.txt
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>

diff --git a/autogen.sh b/autogen.sh
index 80ae530..fc34bd5 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,5 +9,6 @@ cd $srcdir
 autoreconf -v --install || exit 1
 cd $ORIGDIR || exit $?
 
-$srcdir/configure "$@"
-
+if test -z "$NOCONFIGURE"; then
+    $srcdir/configure "$@"
+fi

commit 0e4c17c6d6980f07896f0631cffeb82a0e9705f7
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Thu Jan 26 10:26:30 2017 +1000

    autogen.sh: stop using maintainer mode
    
    See xserver commit 4bf3eac5fe20f
    
    Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/autogen.sh b/autogen.sh
index e81f989..80ae530 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -9,5 +9,5 @@ cd $srcdir
 autoreconf -v --install || exit 1
 cd $ORIGDIR || exit $?
 
-$srcdir/configure --enable-maintainer-mode "$@"
+$srcdir/configure "$@"
 
diff --git a/configure.ac b/configure.ac
index 2d36ed5..def3cd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,6 @@ AC_INIT([xauth],
 	[https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],
 	[xauth])
 AM_INIT_AUTOMAKE([foreign dist-bzip2])
-AM_MAINTAINER_MODE
 
 AC_CONFIG_HEADERS([config.h])
 

commit a64ca3aafcde516658d699047382ab294e3e974f
Author: Søren Sandmann Pedersen <ssp@redhat.com>
Date:   Thu Sep 26 12:30:03 2013 -0400

    usage(): Print summary for the -n option
    
    This option is mentioned in the man page, but not in the help text
    
    Signed-off-by: Hans de Goede <hdegoede@redhat.com>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>

diff --git a/xauth.c b/xauth.c
index 85fcaf4..d9efda0 100644
--- a/xauth.c
+++ b/xauth.c
@@ -68,6 +68,7 @@ usage(void)
 "    -q                             turn off extra messages",
 "    -i                             ignore locks on authority file",
 "    -b                             break locks on authority file",
+"    -n                             do not resolve host names in authority file",
 "    -V                             show version number of xauth",
 "",
 "and commands have the following syntax:",

commit ad26f2137f6414c8cadc070f96a4476d435e994b
Author: Alan Coopersmith <alan.coopersmith@oracle.com>
Date:   Fri Jan 2 09:49:52 2015 -0800

    include POSIX-standard limits.h for PATH_MAX instead of sys/syslimits.h
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
    Reviewed-by: Mark Kettenis <kettenis@openbsd.org>

diff --git a/gethost.c b/gethost.c
index e0dc8cb..8cb58c5 100644
--- a/gethost.c
+++ b/gethost.c
@@ -58,7 +58,7 @@ in this Software without prior written authorization from The Open Group.
 #include "xauth.h"
 
 #include <sys/stat.h>
-#include <sys/syslimits.h>
+#include <limits.h>
 
 #ifndef WIN32
 #include <arpa/inet.h>
diff --git a/parsedpy.c b/parsedpy.c
index c638b26..97988d3 100644
--- a/parsedpy.c
+++ b/parsedpy.c
@@ -43,7 +43,7 @@ in this Software without prior written authorization from The Open Group.
 #include <X11/Xmu/SysUtil.h>
 
 #include <sys/stat.h>
-#include <sys/syslimits.h>
+#include <limits.h>
 
 #if defined(UNIXCONN) || defined(LOCALCONN)
 #define UNIX_CONNECTION "unix"

commit a58c9d74c8f9c4292d367c6e23d15c4cba03dfde
Author: Jon TURNEY <jon.turney@dronecode.org.uk>
Date:   Fri Jan 2 16:18:52 2015 +0000

    Fix !HAVE_STRLCPY case
    
    Fix error in the !HAVE_STRLCPY case, introduced in commit
    f990dd936b5fd1a40290bb88cde517a0ac38f823
    
    It seems that "path[sizeof(path) - 1]" rather than "buf[sizeof(path) - 1]" must
    be meant here, especially as the second instance doesn't even compile...
    
    parsedpy.c: In function ‘parse_displayname’:
    parsedpy.c:176:9: error: ‘buf’ undeclared (first use in this function)
    
    Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
    Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
    Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

diff --git a/gethost.c b/gethost.c
index c75ae02..e0dc8cb 100644
--- a/gethost.c
+++ b/gethost.c
@@ -200,7 +200,7 @@ struct addrlist *get_address_info (
 	    strlcpy(path, fulldpyname, sizeof(path));
 #else
 	    strncpy(path, fulldpyname, sizeof(path));
-	    buf[sizeof(path) - 1] = '\0';
+	    path[sizeof(path) - 1] = '\0';
 #endif
 	    if (0 == stat(path, &sbuf)) {
 		is_path_to_socket = 1;
diff --git a/parsedpy.c b/parsedpy.c
index 7365224..c638b26 100644
--- a/parsedpy.c
+++ b/parsedpy.c
@@ -173,7 +173,7 @@ parse_displayname (const char *displayname,
         strlcpy(path, displayname, sizeof(path));
 #else
         strncpy(path, displayname, sizeof(path));
-        buf[sizeof(path) - 1] = '\0';
+        path[sizeof(path) - 1] = '\0';
 #endif
         if (0 == stat(path, &sbuf)) {
             family = FamilyLocal;

commit f990dd936b5fd1a40290bb88cde517a0ac38f823
Author: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Date:   Wed Dec 31 02:42:17 2014 -0800

    Update DISPLAY parsing to work with new launchd paths in Yosemite
    
    Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>

diff --git a/gethost.c b/gethost.c
index 0a5aff5..c75ae02 100644
--- a/gethost.c
+++ b/gethost.c
@@ -57,6 +57,8 @@ in this Software without prior written authorization from The Open Group.
 #include <errno.h>
 #include "xauth.h"
 
+#include <sys/stat.h>
+#include <sys/syslimits.h>
 
 #ifndef WIN32
 #include <arpa/inet.h>
@@ -189,30 +191,55 @@ struct addrlist *get_address_info (
 		src = buf;
 		len = strlen (buf);
 	    }
-	} else if(prefix == 0 && (strncmp (fulldpyname, "/tmp/launch", 11) == 0)) {
-        /* Use the bundle id (part preceding : in the basename) as our src id */
-        char *c;
+	} else {
+	    char path[PATH_MAX];
+	    struct stat sbuf;
+	    int is_path_to_socket = 0;
+
+#ifdef HAVE_STRLCPY
+	    strlcpy(path, fulldpyname, sizeof(path));
+#else
+	    strncpy(path, fulldpyname, sizeof(path));
+	    buf[sizeof(path) - 1] = '\0';
+#endif
+	    if (0 == stat(path, &sbuf)) {
+		is_path_to_socket = 1;
+	    } else {
+		char *dot = strrchr(path, '.');
+		if (dot) {
+		    *dot = '\0';
+		    /* screen = atoi(dot + 1); */
+		    if (0 == stat(path, &sbuf)) {
+		        is_path_to_socket = 1;
+		    }
+		}
+	    }
+
+	    if (is_path_to_socket) {
+		/* Use the bundle id (part preceding : in the basename) as our src id */
+		char *c;
 #ifdef HAVE_STRLCPY
-        strlcpy(buf, strrchr(fulldpyname, '/') + 1, sizeof(buf));
+		strlcpy(buf, strrchr(fulldpyname, '/') + 1, sizeof(buf));
 #else
-        strncpy(buf, strrchr(fulldpyname, '/') + 1, sizeof(buf));
-	buf[sizeof(buf) - 1] = '\0';
+		strncpy(buf, strrchr(fulldpyname, '/') + 1, sizeof(buf));
+		buf[sizeof(buf) - 1] = '\0';
 #endif
 
-        c = strchr(buf, ':');
+		c = strchr(buf, ':');
 
-        /* In the legacy case with no bundle id, use the full path */
-        if(c == buf) {
-            src = fulldpyname;
-        } else {
-            *c = '\0';
-            src = buf;
-        }
+		/* In the legacy case with no bundle id, use the full path */
+		if(c == buf) {
+			src = fulldpyname;
+		} else {
+			*c = '\0';
+			src = buf;
+		}
 
-        len = strlen(src);
-    } else {
-	    src = fulldpyname;
-	    len = prefix;
+		len = strlen(src);
+	    } else {
+		src = fulldpyname;
+		len = prefix;
+            }
 	}
 	break;
       case FamilyInternet:		/* host:0 */
diff --git a/parsedpy.c b/parsedpy.c
index c591b77..7365224 100644
--- a/parsedpy.c
+++ b/parsedpy.c
@@ -42,6 +42,9 @@ in this Software without prior written authorization from The Open Group.
 #include <X11/Xauth.h>			/* for FamilyLocal */
 #include <X11/Xmu/SysUtil.h>
 
+#include <sys/stat.h>
+#include <sys/syslimits.h>
+
 #if defined(UNIXCONN) || defined(LOCALCONN)
 #define UNIX_CONNECTION "unix"
 #define UNIX_CONNECTION_LENGTH 4
@@ -158,8 +161,32 @@ parse_displayname (const char *displayname,
 
     if (!host) return False;
 
-    if(strncmp (host, "/tmp/launch", 11) == 0) {
-        family = FamilyLocal;
+    {
+        /*
+         * If using launchd socket, remove the screen number from the end
+         * of $DISPLAY and check if it is a path to a socket.
+         */
+        char path[PATH_MAX];
+        struct stat sbuf;
+
+#ifdef HAVE_STRLCPY
+        strlcpy(path, displayname, sizeof(path));
+#else
+        strncpy(path, displayname, sizeof(path));
+        buf[sizeof(path) - 1] = '\0';
+#endif
+        if (0 == stat(path, &sbuf)) {
+            family = FamilyLocal;
+        } else {
+            char *dot = strrchr(path, '.');
+            if (dot) {
+                *dot = '\0';
+                /* screen = atoi(dot + 1); */
+                if (0 == stat(path, &sbuf)) {
+                    family = FamilyLocal;
+                }
+            }
+        }
     }
 
     /*

commit 047f92a85796fca563d9345d6c4798b64be77cff
Author: Dr. Tilmann Bubeck <tilmann@bubecks.de>
Date:   Tue Jun 24 00:22:54 2014 +0200

    Fix for xauth failing on ENOSPC (= disk full)
    
    If xauth must store its XAUTHORITY file on a file system which is
    full, it will be unable to write the changes. This condition was
    not detected and therefore often the whole XAUTHORITY file was
    cleared. Here is the fix.
    
    Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=21260
    
    Signed-off-by: Dr. Tilmann Bubeck <tilmann@bubecks.de>

diff --git a/process.c b/process.c
index b44858a..5b12c92 100644
--- a/process.c
+++ b/process.c
@@ -844,7 +844,10 @@ write_auth_file(char *tmp_nam)
 	}
     }
 
-    (void) fclose (fp);
+    if (fclose(fp)) {
+	return -1;
+    }
+
     return 0;
 }
 

commit 12e63de4e0b3a45fad15863a66723609b068e668
Author: Dr. Tilmann Bubeck <tilmann@bubecks.de>
Date:   Wed Apr 2 22:13:48 2014 +0200

    Clarified RELEASING in README
    
    Changed clone URL and improved text. Removed section GARBAGE.
    
    Signed-off-by: Dr. Tilmann Bubeck <tilmann@bubecks.de>

diff --git a/README b/README
index 2795b79..1f5e867 100644
--- a/README
+++ b/README
@@ -46,13 +46,17 @@ public. A detailed description of this process can be found at
 http://www.x.org/wiki/Development/Documentation/ReleaseHOWTO with a
 few clarification below.
 
-For releasing under Fedora make sure, that INSTALL in
-/usr/share/util-macros/ exists. If not, then please create that
+Remember, that the last commit _must_ include the version string in
+its diff (not the commit message). This is typically done by
+incrementing the version string in configure.ac.
+
+For releasing under Fedora make sure, that
+/usr/share/util-macros/INSTALL exists. If not, then please create that
 file.
 
 To release a new version of xauth, please follow this steps:
 
- * git clone git://anongit.freedesktop.org/git/xorg/app/xauth
+ * git clone ssh://git.freedesktop.org/git/xorg/app/xauth
  * cd xauth ; ./autogen.sh ; make ; make check
  * follow ReleaseHowto inside this directory.
 
@@ -64,11 +68,4 @@ Ignore these errors shown during release.sh:
    cp: cannot create regular file '../.INSTALL.tmp': Permission denied
    util-macros "pkgdatadir" from xorg-macros.pc not found: installing possibly empty INSTALL.
 
-   V. GARBAGE
-
-Please ignore this paragraph. It is only used to satisfying
-release.sh, which wants to see the version number to the last version
-in the diff, which is 1.0.9 in our case.  This paragraph can be
-deleted on the next release of xauth.
-
 [eof]


Reply to: