Diff of the two buildlogs:

--
--- b1/build.log	2024-12-30 01:32:31.014254802 +0000
+++ b2/build.log	2024-12-30 01:34:29.892845760 +0000
@@ -1,6 +1,6 @@
 I: pbuilder: network access will be disabled during build
-I: Current time: Sat Jan 31 19:53:05 -12 2026
-I: pbuilder-time-stamp: 1769932385
+I: Current time: Mon Dec 30 15:32:33 +14 2024
+I: pbuilder-time-stamp: 1735522353
 I: Building the build Environment
 I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz]
 I: copying local configuration
@@ -31,52 +31,84 @@
 dpkg-source: info: applying doc_mention_xdm.options.diff
 I: using fakeroot in build.
 I: Installing the build-deps
-I: user script /srv/workspace/pbuilder/1841155/tmp/hooks/D02_print_environment starting
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/D01_modify_environment starting
+debug: Running on ionos11-amd64.
+I: Changing host+domainname to test build reproducibility
+I: Adding a custom variable just for the fun of it...
+I: Changing /bin/sh to bash
+'/bin/sh' -> '/bin/bash'
+lrwxrwxrwx 1 root root 9 Dec 30 01:32 /bin/sh -> /bin/bash
+I: Setting pbuilder2's login shell to /bin/bash
+I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/D01_modify_environment finished
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/D02_print_environment starting
 I: set
-  BUILDDIR='/build/reproducible-path'
-  BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other'
-  BUILDUSERNAME='pbuilder1'
-  BUILD_ARCH='amd64'
-  DEBIAN_FRONTEND='noninteractive'
-  DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 '
-  DISTRIBUTION='unstable'
-  HOME='/root'
-  HOST_ARCH='amd64'
+  BASH=/bin/sh
+  BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath
+  BASH_ALIASES=()
+  BASH_ARGC=()
+  BASH_ARGV=()
+  BASH_CMDS=()
+  BASH_LINENO=([0]="12" [1]="0")
+  BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:.
+  BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment")
+  BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu")
+  BASH_VERSION='5.2.37(1)-release'
+  BUILDDIR=/build/reproducible-path
+  BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other'
+  BUILDUSERNAME=pbuilder2
+  BUILD_ARCH=amd64
+  DEBIAN_FRONTEND=noninteractive
+  DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 '
+  DIRSTACK=()
+  DISTRIBUTION=unstable
+  EUID=0
+  FUNCNAME=([0]="Echo" [1]="main")
+  GROUPS=()
+  HOME=/root
+  HOSTNAME=i-capture-the-hostname
+  HOSTTYPE=x86_64
+  HOST_ARCH=amd64
   IFS=' 	
   '
-  INVOCATION_ID='65229461e3854e669f2f34c0260d3c1a'
-  LANG='C'
-  LANGUAGE='en_US:en'
-  LC_ALL='C'
-  MAIL='/var/mail/root'
-  OPTIND='1'
-  PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games'
-  PBCURRENTCOMMANDLINEOPERATION='build'
-  PBUILDER_OPERATION='build'
-  PBUILDER_PKGDATADIR='/usr/share/pbuilder'
-  PBUILDER_PKGLIBDIR='/usr/lib/pbuilder'
-  PBUILDER_SYSCONFDIR='/etc'
-  PPID='1841155'
-  PS1='# '
-  PS2='> '
+  INVOCATION_ID=7bac09f9e8af4c1bb216d5dc8c1af3ad
+  LANG=C
+  LANGUAGE=et_EE:et
+  LC_ALL=C
+  MACHTYPE=x86_64-pc-linux-gnu
+  MAIL=/var/mail/root
+  OPTERR=1
+  OPTIND=1
+  OSTYPE=linux-gnu
+  PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path
+  PBCURRENTCOMMANDLINEOPERATION=build
+  PBUILDER_OPERATION=build
+  PBUILDER_PKGDATADIR=/usr/share/pbuilder
+  PBUILDER_PKGLIBDIR=/usr/lib/pbuilder
+  PBUILDER_SYSCONFDIR=/etc
+  PIPESTATUS=([0]="0")
+  POSIXLY_CORRECT=y
+  PPID=1468843
   PS4='+ '
-  PWD='/'
-  SHELL='/bin/bash'
-  SHLVL='2'
-  SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.ugXBlVkG/pbuilderrc_gDiF --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ugXBlVkG/b1 --logfile b1/build.log xdm_1.1.11-6.1.dsc'
-  SUDO_GID='110'
-  SUDO_UID='105'
-  SUDO_USER='jenkins'
-  TERM='unknown'
-  TZ='/usr/share/zoneinfo/Etc/GMT+12'
-  USER='root'
-  _='/usr/bin/systemd-run'
-  http_proxy='http://213.165.73.152:3128'
+  PWD=/
+  SHELL=/bin/bash
+  SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix
+  SHLVL=3
+  SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.ugXBlVkG/pbuilderrc_07MZ --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.ugXBlVkG/b2 --logfile b2/build.log xdm_1.1.11-6.1.dsc'
+  SUDO_GID=111
+  SUDO_UID=106
+  SUDO_USER=jenkins
+  TERM=unknown
+  TZ=/usr/share/zoneinfo/Etc/GMT-14
+  UID=0
+  USER=root
+  _='I: set'
+  http_proxy=http://46.16.76.132:3128
 I: uname -a
-  Linux ionos5-amd64 6.11.10+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1~bpo12+1 (2024-12-19) x86_64 GNU/Linux
+  Linux i-capture-the-hostname 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
 I: ls -l /bin
-  lrwxrwxrwx 1 root root 7 Nov 22  2024 /bin -> usr/bin
-I: user script /srv/workspace/pbuilder/1841155/tmp/hooks/D02_print_environment finished
+  lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/D02_print_environment finished
  -> Attempting to satisfy build-dependencies
  -> Creating pbuilder-satisfydepends-dummy package
 Package: pbuilder-satisfydepends-dummy
@@ -239,7 +271,7 @@
 Get: 95 http://deb.debian.org/debian unstable/main amd64 quilt all 0.68-1 [437 kB]
 Get: 96 http://deb.debian.org/debian unstable/main amd64 systemd-dev all 257.1-5 [70.1 kB]
 Get: 97 http://deb.debian.org/debian unstable/main amd64 xutils-dev amd64 1:7.7+7 [240 kB]
-Fetched 35.1 MB in 14s (2482 kB/s)
+Fetched 35.1 MB in 0s (74.8 MB/s)
 Preconfiguring packages ...
 Selecting previously unselected package sensible-utils.
 (Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 19859 files and directories currently installed.)
@@ -649,7 +681,11 @@
 fakeroot is already the newest version (1.36.2-1).
 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
 I: Building the package
-I: Running cd /build/reproducible-path/xdm-1.1.11/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S  > ../xdm_1.1.11-6.1_source.changes
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/A99_set_merged_usr starting
+Not re-configuring usrmerge for unstable
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/A99_set_merged_usr finished
+hostname: Name or service not known
+I: Running cd /build/reproducible-path/xdm-1.1.11/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S  > ../xdm_1.1.11-6.1_source.changes
 dpkg-buildpackage: info: source package xdm
 dpkg-buildpackage: info: source version 1:1.1.11-6.1
 dpkg-buildpackage: info: source distribution unstable
@@ -657,7 +693,7 @@
  dpkg-source --before-build .
 dpkg-buildpackage: info: host architecture amd64
  fakeroot debian/rules clean
-/bin/sh: 1: Bad substitution
+/bin/sh: line 1: ${VERSION\#\#*-}: bad substitution
 rm -f stampdir/genscripts
 mkdir stampdir
 rm -f debian/*.config \
@@ -674,13 +710,13 @@
 
 Removing patch debian.diff
 Restoring config/xdm-config.cpp
-Restoring config/Xsession.cpp
 Restoring config/Xservers.ws.cpp
+Restoring config/Xsession.cpp
 
 Removing patch support_logfile_rotation.diff
 Restoring xdm/dm.c
-Restoring include/dm_error.h
 Restoring man/xdm.man
+Restoring include/dm_error.h
 
 Removing patch 22_systemd_service.diff
 Restoring xdm.service.in
@@ -695,8 +731,8 @@
 Restoring xdm/auth.c
 
 Removing patch greeter-xrender.diff
-Restoring greeter/Login.c
 Restoring configure.ac
+Restoring greeter/Login.c
 
 No patches applied
 successful.
@@ -714,7 +750,7 @@
 dh_clean
 dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
  debian/rules build
-/bin/sh: 1: Bad substitution
+/bin/sh: line 1: ${VERSION\#\#*-}: bad substitution
 mkdir stampdir
 >stampdir/stampdir
 mkdir -p stampdir/log
@@ -1174,7 +1210,7 @@
   983 |         write (fd, (char *)buffer.data, buffer.pointer);
       |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 mv -f .deps/chooser.Tpo .deps/chooser.Po
-/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid     -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -lXinerama  -lXaw7 -lXt -lX11  -lXdmcp  -Wl,-z,relro -Wl,-z,now -o chooser chooser.o  -lselinux -lpam -lcrypt 
+/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid     -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -lXinerama  -lXaw7 -lXt -lX11  -lXdmcp  -Wl,-z,relro -Wl,-z,now -o chooser chooser.o  -lselinux -lpam -lcrypt 
 libtool: link: gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -Wl,-z -Wl,relro -Wl,-z -Wl,now -o chooser chooser.o  -lXinerama -lXaw7 -lXt -lX11 -lXdmcp -lselinux -lpam -lcrypt
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/chooser'
 Making all in config
@@ -1192,12 +1228,12 @@
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/config'
 Making all in greeter
 make[3]: Entering directory '/build/reproducible-path/xdm-1.1.11/build/greeter'
-/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT Login.lo -MD -MP -MF .deps/Login.Tpo -c -o Login.lo ../../greeter/Login.c
-/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT greet.lo -MD -MP -MF .deps/greet.Tpo -c -o greet.lo ../../greeter/greet.c
-/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT verify.lo -MD -MP -MF .deps/verify.Tpo -c -o verify.lo ../../greeter/verify.c
+/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT Login.lo -MD -MP -MF .deps/Login.Tpo -c -o Login.lo ../../greeter/Login.c
+/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT greet.lo -MD -MP -MF .deps/greet.Tpo -c -o greet.lo ../../greeter/greet.c
+/bin/sh ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../greeter -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT verify.lo -MD -MP -MF .deps/verify.Tpo -c -o verify.lo ../../greeter/verify.c
 libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../greeter -I.. -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT Login.lo -MD -MP -MF .deps/Login.Tpo -c ../../greeter/Login.c  -fPIC -DPIC -o .libs/Login.o
-libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../greeter -I.. -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT greet.lo -MD -MP -MF .deps/greet.Tpo -c ../../greeter/greet.c  -fPIC -DPIC -o .libs/greet.o
 libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../greeter -I.. -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT verify.lo -MD -MP -MF .deps/verify.Tpo -c ../../greeter/verify.c  -fPIC -DPIC -o .libs/verify.o
+libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../greeter -I.. -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT greet.lo -MD -MP -MF .deps/greet.Tpo -c ../../greeter/greet.c  -fPIC -DPIC -o .libs/greet.o
 ../../greeter/verify.c:65:5: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    65 |     "TZ",                       /* SYSV and SVR4, but never hurts */
       |     ^~~~
@@ -1231,34 +1267,6 @@
   546 |                 argv = parseArgs (argv, "xsession");
       |                                         ^~~~~~~~~~
 ../../greeter/verify.c:546:41: note: expected 'char *' but argument is of type 'const char *'
-../../greeter/greet.c: In function 'InitGreet':
-../../greeter/greet.c:241:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  241 |     static char *argv[] = { "xlogin", NULL };
-      |                             ^~~~~~~~
-../../greeter/greet.c:282:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  282 |     XtSetArg (arglist[i], XtNnotifyDone, (XtPointer)GreetDone); i++;
-      |     ^~~~~~~~
-../../greeter/greet.c:285:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  285 |         XtSetArg (arglist[i], XtNsecureSession, True); i++;
-      |         ^~~~~~~~
-../../greeter/greet.c: In function 'CloseGreet':
-../../greeter/greet.c:332:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  332 |     XtSetArg (arglist[0], XtNallowAccess, (char *) &allow);
-      |     ^~~~~~~~
-../../greeter/greet.c: In function 'Greet':
-../../greeter/greet.c:356:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  356 |     XtSetArg (arglist[0], XtNallowAccess, False);
-      |     ^~~~~~~~
-../../greeter/greet.c:396:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  396 |         XtSetArg (arglist[0], XtNsessionArgument, (char *) &(greet->string));
-      |         ^~~~~~~~
-../../greeter/greet.c: In function 'GreetUser':
-../../greeter/greet.c:481:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  481 |     XtSetArg (arglist[0], XtNallowNullPasswd,
-      |     ^~~~~~~~
-../../greeter/greet.c:483:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  483 |     XtSetArg (arglist[1], XtNallowRootLogin,
-      |     ^~~~~~~~
 In file included from ../../greeter/LoginP.h:59,
                  from ../../greeter/Login.c:73:
 ../../greeter/Login.h:129:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
@@ -1678,6 +1686,34 @@
 ../../greeter/Login.c:225:25: note: in expansion of macro 'XtCEchoPasswdChar'
   225 |     {XtNechoPasswdChar, XtCEchoPasswdChar, XtRString,   sizeof (char *),
       |                         ^~~~~~~~~~~~~~~~~
+../../greeter/greet.c: In function 'InitGreet':
+../../greeter/greet.c:241:29: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  241 |     static char *argv[] = { "xlogin", NULL };
+      |                             ^~~~~~~~
+../../greeter/greet.c:282:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  282 |     XtSetArg (arglist[i], XtNnotifyDone, (XtPointer)GreetDone); i++;
+      |     ^~~~~~~~
+../../greeter/greet.c:285:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  285 |         XtSetArg (arglist[i], XtNsecureSession, True); i++;
+      |         ^~~~~~~~
+../../greeter/greet.c: In function 'CloseGreet':
+../../greeter/greet.c:332:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  332 |     XtSetArg (arglist[0], XtNallowAccess, (char *) &allow);
+      |     ^~~~~~~~
+../../greeter/greet.c: In function 'Greet':
+../../greeter/greet.c:356:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  356 |     XtSetArg (arglist[0], XtNallowAccess, False);
+      |     ^~~~~~~~
+../../greeter/greet.c:396:9: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  396 |         XtSetArg (arglist[0], XtNsessionArgument, (char *) &(greet->string));
+      |         ^~~~~~~~
+../../greeter/greet.c: In function 'GreetUser':
+../../greeter/greet.c:481:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  481 |     XtSetArg (arglist[0], XtNallowNullPasswd,
+      |     ^~~~~~~~
+../../greeter/greet.c:483:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  483 |     XtSetArg (arglist[1], XtNallowRootLogin,
+      |     ^~~~~~~~
 ../../greeter/Login.c: In function 'AllowAccess':
 ../../greeter/Login.c:1236:5: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  1236 |     XtSetArg (arglist[0], XtNallowAccess, (char *) &allow);
@@ -1713,6 +1749,7 @@
 ../../greeter/Login.c:2038:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  2038 |   {"finish-field",              FinishField},
       |    ^~~~~~~~~~~~~~
+mv -f .deps/verify.Tpo .deps/verify.Plo
 ../../greeter/Login.c:2039:4: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
  2039 |   {"tab-field",                 TabField},
       |    ^~~~~~~~~~~
@@ -1738,7 +1775,6 @@
  2051 |     /* class_name               */      "Login",
       |                                         ^~~~~~~
 mv -f .deps/greet.Tpo .deps/greet.Plo
-mv -f .deps/verify.Tpo .deps/verify.Plo
 ../../greeter/Login.c: In function 'SetPrompt':
 ../../greeter/Login.c:844:5: warning: '__builtin_strncpy' output truncated before terminating nul copying as many bytes from a string as its length [-Wstringop-truncation]
   844 |     strncpy(prompt, message, messageLen);
@@ -1747,7 +1783,7 @@
   836 |     messageLen = strlen(message);
       |                  ^~~~~~~~~~~~~~~
 mv -f .deps/Login.Tpo .deps/Login.Plo
-/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -module -avoid-version -Wl,-z,relro -Wl,-z,now -o libXdmGreet.la -rpath /usr/lib/X11/xdm Login.lo greet.lo verify.lo -lXt -lX11 -lXext  -lXaw7 -lXt -lX11  -lXdmcp   -lXinerama  -lXft -lXrender -lX11  -lXpm -lX11  -lselinux -lpam -lcrypt 
+/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid  -I/usr/include/uuid      -I/usr/include/freetype2 -I/usr/include/libpng16    -DGREET_LIB -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -module -avoid-version -Wl,-z,relro -Wl,-z,now -o libXdmGreet.la -rpath /usr/lib/X11/xdm Login.lo greet.lo verify.lo -lXt -lX11 -lXext  -lXaw7 -lXt -lX11  -lXdmcp   -lXinerama  -lXft -lXrender -lX11  -lXpm -lX11  -lselinux -lpam -lcrypt 
 libtool: link: gcc -shared  -fPIC -DPIC  .libs/Login.o .libs/greet.o .libs/verify.o   -lXext -lXaw7 -lXt -lXdmcp -lXinerama -lXft -lXrender -lXpm -lX11 -lselinux -lpam -lcrypt  -g -O2 -fstack-protector-strong -Wl,-z -Wl,relro -Wl,-z -Wl,now   -Wl,-soname -Wl,libXdmGreet.so -o .libs/libXdmGreet.so
 libtool: link: ( cd ".libs" && rm -f "libXdmGreet.la" && ln -s "../libXdmGreet.la" "libXdmGreet.la" )
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/greeter'
@@ -1782,17 +1818,6 @@
 gcc -DHAVE_CONFIG_H -I. -I../../xdm -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT socket.o -MD -MP -MF .deps/socket.Tpo -c -o socket.o ../../xdm/socket.c
 gcc -DHAVE_CONFIG_H -I. -I../../xdm -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT streams.o -MD -MP -MF .deps/streams.Tpo -c -o streams.o ../../xdm/streams.c
 gcc -DHAVE_CONFIG_H -I. -I../../xdm -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o ../../xdm/util.c
-gcc -DHAVE_CONFIG_H -I. -I../../xdm -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT xdmcp.o -MD -MP -MF .deps/xdmcp.Tpo -c -o xdmcp.o ../../xdm/xdmcp.c
-../../xdm/file.c:231:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  231 |         { "local",              { Local, Permanent, FromFile } },
-      |           ^~~~~~~
-../../xdm/file.c:232:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  232 |         { "foreign",            { Foreign, Permanent, FromFile } },
-      |           ^~~~~~~~~
-../../xdm/access.c: In function 'patternMatch':
-../../xdm/access.c:675:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  675 |         string = "";
-      |                ^
 ../../xdm/error.c: In function 'LogVWrite':
 ../../xdm/error.c:57:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
    57 |     write(STDERR_FILENO, buf, len);
@@ -1801,6 +1826,14 @@
 ../../xdm/error.c:108:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
   108 | LogPanic (const char * fmt, ...)
       | ^~~~~~~~
+../../xdm/dm.c: In function 'WaitForChild':
+../../xdm/dm.c:551:36: warning: passing argument 2 of 'SendFailed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  551 |                     SendFailed (d, "Cannot open display");
+      |                                    ^~~~~~~~~~~~~~~~~~~~~
+In file included from ../../xdm/dm.c:36:
+../../include/dm.h:481:50: note: expected 'char *' but argument is of type 'const char *'
+  481 | extern void SendFailed (struct display *d, char *reason);
+      |                                            ~~~~~~^~~~~~
 ../../xdm/session.c: In function 'xdm_selinux_setup':
 ../../xdm/session.c:89:9: warning: 'security_context_t' is deprecated [-Wdeprecated-declarations]
    89 |         security_context_t scontext;
@@ -1809,12 +1842,24 @@
 ../../xdm/session.c:175:9: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
   175 |         Debug,
       |         ^~~~~
+../../xdm/dm.c:577:32: warning: format '%i' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Wformat=]
+  577 |                   Debug("time %i %i try %i of %i%s\n", now, d->lastReserv,
+      |                               ~^                       ~~~
+      |                                |                       |
+      |                                int                     time_t {aka long int}
+      |                               %li
 ../../xdm/session.c:181:9: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
   181 |         LogError,
       |         ^~~~~~~~
 ../../xdm/session.c:191:9: warning: initialization left-hand side might be a candidate for a format attribute [-Wsuggest-attribute=format]
   191 |         LogOutOfMem,
       |         ^~~~~~~~~~~
+../../xdm/dm.c:577:35: warning: format '%i' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=]
+  577 |                   Debug("time %i %i try %i of %i%s\n", now, d->lastReserv,
+      |                                  ~^                         ~~~~~~~~~~~~~
+      |                                   |                          |
+      |                                   int                        time_t {aka long int}
+      |                                  %li
 ../../xdm/session.c: In function 'StartClient':
 ../../xdm/session.c:567:26: warning: declaration of 'verify' shadows a global declaration [-Wshadow]
   567 |     struct verify_info  *verify,
@@ -1822,10 +1867,6 @@
 ../../xdm/session.c:220:33: note: shadowed declaration is here
   220 | static struct verify_info       verify;
       |                                 ^~~~~~
-../../xdm/dm.c: In function 'WaitForChild':
-../../xdm/dm.c:551:36: warning: passing argument 2 of 'SendFailed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  551 |                     SendFailed (d, "Cannot open display");
-      |                                    ^~~~~~~~~~~~~~~~~~~~~
 ../../xdm/session.c:814:67: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   814 |                 verify->userEnviron = setEnv(verify->userEnviron, "WINDOWPATH", d->windowPath);
       |                                                                   ^~~~~~~~~~~~
@@ -1833,53 +1874,42 @@
 ../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
   466 | extern char **setEnv (char **e, char *name, char *value);
       |                                 ~~~~~~^~~~
-In file included from ../../xdm/dm.c:36:
-../../include/dm.h:481:50: note: expected 'char *' but argument is of type 'const char *'
-  481 | extern void SendFailed (struct display *d, char *reason);
-      |                                            ~~~~~~^~~~~~
 ../../xdm/session.c:831:45: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   831 |         home = getEnv (verify->userEnviron, "HOME");
       |                                             ^~~~~~
 ../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
   468 | extern char *getEnv (char **e, char *name);
       |                                ~~~~~~^~~~
-../../xdm/dm.c:577:32: warning: format '%i' expects argument of type 'int', but argument 2 has type 'time_t' {aka 'long int'} [-Wformat=]
-  577 |                   Debug("time %i %i try %i of %i%s\n", now, d->lastReserv,
-      |                               ~^                       ~~~
-      |                                |                       |
-      |                                int                     time_t {aka long int}
-      |                               %li
-../../xdm/server.c: In function '_SysErrorMsg':
-../../xdm/server.c:68:19: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-   68 |     return (s ? s : "unknown error");
-      |            ~~~~~~~^~~~~~~~~~~~~~~~~~
 ../../xdm/session.c:835:56: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   835 |                           getEnv (verify->userEnviron, "USER"), home, errno);
       |                                                        ^~~~~~
 ../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
   468 | extern char *getEnv (char **e, char *name);
       |                                ~~~~~~^~~~
-../../xdm/auth.c:128:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
-  128 | { (unsigned short) 18,  "MIT-MAGIC-COOKIE-1",
-      |                         ^~~~~~~~~~~~~~~~~~~~
 ../../xdm/session.c:837:67: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   837 |                 verify->userEnviron = setEnv(verify->userEnviron, "HOME", "/");
       |                                                                   ^~~~~~
-../../xdm/dm.c:577:35: warning: format '%i' expects argument of type 'int', but argument 3 has type 'time_t' {aka 'long int'} [-Wformat=]
-  577 |                   Debug("time %i %i try %i of %i%s\n", now, d->lastReserv,
-      |                                  ~^                         ~~~~~~~~~~~~~
-      |                                   |                          |
-      |                                   int                        time_t {aka long int}
-      |                                  %li
 ../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
   466 | extern char **setEnv (char **e, char *name, char *value);
       |                                 ~~~~~~^~~~
+../../xdm/dm.c: In function 'main':
+../../xdm/dm.c:183:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result]
+  183 |         system(cmdbuf);
+      |         ^~~~~~~~~~~~~~
 ../../xdm/session.c:837:75: warning: passing argument 3 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   837 |                 verify->userEnviron = setEnv(verify->userEnviron, "HOME", "/");
       |                                                                           ^~~
 ../../include/dm.h:466:51: note: expected 'char *' but argument is of type 'const char *'
   466 | extern char **setEnv (char **e, char *name, char *value);
       |                                             ~~~~~~^~~~~
+In file included from ../../xdm/dm.c:38:
+../../xdm/dm.c: In function 'ReopenLogFileNotify':
+../../include/dm_error.h:37:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
+   37 | #define WRITES(fd, buf) write(fd, buf, strlen(buf))
+      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
+../../xdm/dm.c:275:5: note: in expansion of macro 'WRITES'
+  275 |     WRITES(STDERR_FILENO, "ReopenLogFileNotify handling SIGUSR2\n");
+      |     ^~~~~~
 ../../xdm/choose.c: In function 'AddChooserHost':
 ../../xdm/choose.c:386:35: warning: passing argument 2 of 'parseArgs' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   386 |         *argp = parseArgs (*argp, "BROADCAST");
@@ -1888,143 +1918,14 @@
 ../../include/dm.h:465:45: note: expected 'char *' but argument is of type 'const char *'
   465 | extern char **parseArgs (char **argv, char *string);
       |                                       ~~~~~~^~~~~~
-../../xdm/auth.c: In function 'SaveServerAuthorizations':
-../../xdm/auth.c:453:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
-  453 |             if (auths[i]->data_length > 0)
-      |             ^~
-../../xdm/auth.c:458:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
-  458 |                 (void) fflush (auth_file);
-      |                 ^
 ../../xdm/session.c: In function 'execute':
 ../../xdm/session.c:980:15: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   980 |             p = "/bin/sh";
       |               ^
-../../xdm/session.c: In function 'systemEnv':
-../../xdm/session.c:1024:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1024 |     env = setEnv (env, "DISPLAY", d->name);
-      |                        ^~~~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/session.c:1026:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1026 |         env = setEnv (env, "HOME", home);
-      |                            ^~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/session.c:1028:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1028 |         env = setEnv (env, "USER", user);
-      |                            ^~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/session.c:1029:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1029 |         env = setEnv (env, "LOGNAME", user);
-      |                            ^~~~~~~~~
-../../xdm/dm.c: In function 'main':
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/dm.c:183:9: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result]
-  183 |         system(cmdbuf);
-      |         ^~~~~~~~~~~~~~
-In file included from ../../xdm/dm.c:38:
-../../xdm/dm.c: In function 'ReopenLogFileNotify':
-../../xdm/session.c:1031:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1031 |     env = setEnv (env, "PATH", d->systemPath);
-      |                        ^~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../include/dm_error.h:37:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
-   37 | #define WRITES(fd, buf) write(fd, buf, strlen(buf))
-      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
-../../xdm/dm.c:275:5: note: in expansion of macro 'WRITES'
-  275 |     WRITES(STDERR_FILENO, "ReopenLogFileNotify handling SIGUSR2\n");
-      |     ^~~~~~
-../../xdm/session.c:1032:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1032 |     env = setEnv (env, "SHELL", d->systemShell);
-      |                        ^~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/auth.c: In function 'SetUserAuthorization':
-../../xdm/session.c:1034:32: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1034 |             env = setEnv (env, "XAUTHORITY", d->authFile);
-      |                                ^~~~~~~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/auth.c:1317:45: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1317 |         home = getEnv (verify->userEnviron, "HOME");
-      |                                             ^~~~~~
-In file included from ../../xdm/auth.c:43:
-../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
-  468 | extern char *getEnv (char **e, char *name);
-      |                                ~~~~~~^~~~
-../../xdm/session.c:1036:32: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1036 |             env = setEnv (env, "WINDOWPATH", d->windowPath);
-      |                                ^~~~~~~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/auth.c:1470:37: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1470 |                                     "XAUTHORITY", envname);
-      |                                     ^~~~~~~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/dm.c: In function 'SetWindowPath':
-../../xdm/session.c: In function 'StartClient':
-../../xdm/session.c:836:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result]
-  836 |                 chdir ("/");
-      |                 ^~~~~~~~~~~
-../../xdm/dm.c:770:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
-  770 |                 asprintf(&newwindowpath, "%lu", num);
-      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-../../xdm/auth.c:1472:37: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1472 |                                     "XAUTHORITY", envname);
-      |                                     ^~~~~~~~~~~~
-../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
-  466 | extern char **setEnv (char **e, char *name, char *value);
-      |                                 ~~~~~~^~~~
-../../xdm/dm.c:772:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
-  772 |                 asprintf(&newwindowpath, "%s:%lu", windowpath, num);
-      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-../../xdm/auth.c: In function 'RemoveUserAuthorization':
-../../xdm/auth.c:1494:41: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1494 |     home = getEnv (verify->userEnviron, "HOME");
-      |                                         ^~~~~~
-../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
-  468 | extern char *getEnv (char **e, char *name);
-      |                                ~~~~~~^~~~
-../../xdm/auth.c: In function 'MakeServerAuthFile':
-../../xdm/auth.c:350:28: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
-  350 |                     (void) chown(d->authFile, 0, statb.st_gid);
-      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-../../xdm/auth.c: In function 'SetUserAuthorization':
-../../xdm/auth.c:1476:13: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
- 1476 |             chown (envname, verify->uid, verify->gid);
-      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-../../xdm/choose.c: In function 'RunChooser':
-../../xdm/choose.c:512:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
-  512 | RunChooser (struct display *d)
-      | ^~~~~~~~~~
-../../xdm/session.c: In function 'SessionExit':
-../../xdm/session.c:508:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
-  508 | SessionExit (struct display *d, int status, int removeAuth)
-      | ^~~~~~~~~~~
-../../xdm/session.c: In function 'SessionPingFailed':
-../../xdm/session.c:285:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
-  285 | SessionPingFailed (struct display *d)
-      | ^~~~~~~~~~~~~~~~~
-../../xdm/session.c: In function 'ManageSession':
-../../xdm/session.c:322:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
-  322 | ManageSession (struct display *d)
-      | ^~~~~~~~~~~~~
 ../../xdm/resource.c:153:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   153 | { "servers",    "Servers",      DM_STRING,      &servers,
       |   ^~~~~~~~~
+../../xdm/session.c: In function 'systemEnv':
 ../../xdm/resource.c:153:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   153 | { "servers",    "Servers",      DM_STRING,      &servers,
       |                 ^~~~~~~~~
@@ -2087,6 +1988,7 @@
 ../../xdm/resource.c:165:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   165 | { "lockPidFile","LockPidFile",  DM_BOOL,        (char **) &lockPidFile,
       |   ^~~~~~~~~~~~~
+../../xdm/dm.c: In function 'SetWindowPath':
 ../../xdm/resource.c:165:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   165 | { "lockPidFile","LockPidFile",  DM_BOOL,        (char **) &lockPidFile,
       |                 ^~~~~~~~~~~~~
@@ -2114,6 +2016,9 @@
 ../../xdm/resource.c:170:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   170 |                                 "true"} ,
       |                                 ^~~~~~
+../../xdm/dm.c:770:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
+  770 |                 asprintf(&newwindowpath, "%lu", num);
+      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:171:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   171 | { "removeDomainname","RemoveDomainname",DM_BOOL,(char **) &removeDomainname,
       |   ^~~~~~~~~~~~~~~~~~
@@ -2129,6 +2034,9 @@
 ../../xdm/resource.c:173:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   173 | { "keyFile",    "KeyFile",      DM_STRING,      &keyFile,
       |                 ^~~~~~~~~
+../../xdm/dm.c:772:17: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
+  772 |                 asprintf(&newwindowpath, "%s:%lu", windowpath, num);
+      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:123:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   123 | # define DEF_KEY_FILE   ""
       |                         ^~
@@ -2186,9 +2094,15 @@
 ../../xdm/resource.c:193:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   193 | { "choiceTimeout","ChoiceTimeout",DM_INT,       (char **) &choiceTimeout,
       |                   ^~~~~~~~~~~~~~~
+../../xdm/session.c:1024:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1024 |     env = setEnv (env, "DISPLAY", d->name);
+      |                        ^~~~~~~~~
 ../../xdm/resource.c:194:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   194 |                                 "15"} ,
       |                                 ^~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:195:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   195 | { "sourceAddress","SourceAddress",DM_BOOL,      (char **) &sourceAddress,
       |   ^~~~~~~~~~~~~~~
@@ -2210,15 +2124,25 @@
 ../../xdm/resource.c:215:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   215 | { "serverAttempts","ServerAttempts",DM_INT,     boffset(serverAttempts),
       |   ^~~~~~~~~~~~~~~~
+../../xdm/access.c: In function 'patternMatch':
 ../../xdm/resource.c:215:20: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   215 | { "serverAttempts","ServerAttempts",DM_INT,     boffset(serverAttempts),
       |                    ^~~~~~~~~~~~~~~~
 ../../xdm/resource.c:216:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   216 |                                 "1" },
       |                                 ^~~
+../../xdm/session.c:1026:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1026 |         env = setEnv (env, "HOME", home);
+      |                            ^~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:217:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   217 | { "openDelay",  "OpenDelay",    DM_INT,         boffset(openDelay),
       |   ^~~~~~~~~~~
+../../xdm/access.c:675:16: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  675 |         string = "";
+      |                ^
 ../../xdm/resource.c:217:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   217 | { "openDelay",  "OpenDelay",    DM_INT,         boffset(openDelay),
       |                 ^~~~~~~~~~~
@@ -2249,10 +2173,6 @@
 ../../xdm/resource.c:223:19: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   223 | { "startAttempts","StartAttempts",DM_INT,       boffset(startAttempts),
       |                   ^~~~~~~~~~~~~~~
-../../xdm/util.c: In function 'makeEnv':
-../../xdm/util.c:104:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
-  104 |         asprintf(&result, "%s=%s", name, value);
-      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:224:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   224 |                                 "4" },
       |                                 ^~~
@@ -2268,6 +2188,12 @@
 ../../xdm/resource.c:227:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   227 | { "pingInterval","PingInterval",DM_INT,         boffset(pingInterval),
       |   ^~~~~~~~~~~~~~
+../../xdm/session.c:1028:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1028 |         env = setEnv (env, "USER", user);
+      |                            ^~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:227:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   227 | { "pingInterval","PingInterval",DM_INT,         boffset(pingInterval),
       |                  ^~~~~~~~~~~~~~
@@ -2280,12 +2206,16 @@
 ../../xdm/resource.c:229:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   229 | { "pingTimeout","PingTimeout",  DM_INT,         boffset(pingTimeout),
       |                 ^~~~~~~~~~~~~
+mv -f .deps/daemon.Tpo .deps/daemon.Po
 ../../xdm/resource.c:230:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   230 |                                 "5" },
       |                                 ^~~
 ../../xdm/resource.c:231:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   231 | { "terminateServer","TerminateServer",DM_BOOL,  boffset(terminateServer),
       |   ^~~~~~~~~~~~~~~~~
+../../xdm/session.c:1029:28: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1029 |         env = setEnv (env, "LOGNAME", user);
+      |                            ^~~~~~~~~
 ../../xdm/resource.c:231:21: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   231 | { "terminateServer","TerminateServer",DM_BOOL,  boffset(terminateServer),
       |                     ^~~~~~~~~~~~~~~~~
@@ -2301,6 +2231,9 @@
 ../../xdm/resource.c:234:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   234 |                                 "false" },
       |                                 ^~~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:235:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   235 | { "grabTimeout","GrabTimeout",  DM_INT,         boffset(grabTimeout),
       |   ^~~~~~~~~~~~~
@@ -2328,21 +2261,18 @@
 ../../xdm/resource.c:240:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   240 |                                 "15" }, /* SIGTERM */
       |                                 ^~~~
+../../xdm/session.c:1031:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1031 |     env = setEnv (env, "PATH", d->systemPath);
+      |                        ^~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:241:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   241 | { "resetForAuth","ResetForAuth",DM_BOOL,        boffset(resetForAuth),
       |   ^~~~~~~~~~~~~~
-../../xdm/util.c: In function 'parseArgs':
-../../xdm/util.c:236:41: warning: pointer 'argv' may be used after 'realloc' [-Wuse-after-free]
-  236 |                                         free (argv);
-      |                                         ^~~~~~~~~~~
 ../../xdm/resource.c:241:18: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   241 | { "resetForAuth","ResetForAuth",DM_BOOL,        boffset(resetForAuth),
       |                  ^~~~~~~~~~~~~~
-../../xdm/util.c:231:43: note: call to 'realloc' here
-  231 |                                 newargv = realloc ((char *) argv,
-      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
-  232 |                                         (unsigned) ((i + 2) * sizeof (char *)));
-      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:242:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   242 |                                 "false" },
       |                                 ^~~~~~~
@@ -2379,12 +2309,18 @@
 ../../xdm/resource.c:249:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   249 | { "authFile",   "AuthFile",     DM_STRING,      boffset(clientAuthFile),
       |   ^~~~~~~~~~
+../../xdm/session.c:1032:24: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1032 |     env = setEnv (env, "SHELL", d->systemShell);
+      |                        ^~~~~~~
 ../../xdm/resource.c:249:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   249 | { "authFile",   "AuthFile",     DM_STRING,      boffset(clientAuthFile),
       |                 ^~~~~~~~~~
 ../../xdm/resource.c:250:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   250 |                                 "" },
       |                                 ^~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:259:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   259 | { "resources",  "Resources",    DM_STRING,      boffset(resources),
       |   ^~~~~~~~~~~
@@ -2412,6 +2348,9 @@
 ../../xdm/resource.c:263:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   263 | { "setup",      "Setup",        DM_STRING,      boffset(setup),
       |                 ^~~~~~~
+../../xdm/session.c:1034:32: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1034 |             env = setEnv (env, "XAUTHORITY", d->authFile);
+      |                                ^~~~~~~~~~~~
 ../../xdm/resource.c:264:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   264 |                                 "" },
       |                                 ^~
@@ -2421,6 +2360,9 @@
 ../../xdm/resource.c:265:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   265 | { "startup",    "Startup",      DM_STRING,      boffset(startup),
       |                 ^~~~~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../../xdm/resource.c:266:33: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   266 |                                 "" },
       |                                 ^~
@@ -2445,12 +2387,18 @@
 ../../xdm/resource.c:270:33: note: in expansion of macro 'DEF_SESSION'
   270 |                                 DEF_SESSION },
       |                                 ^~~~~~~~~~~
+../../xdm/session.c:1036:32: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1036 |             env = setEnv (env, "WINDOWPATH", d->windowPath);
+      |                                ^~~~~~~~~~~~
 ../../xdm/resource.c:271:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   271 | { "userPath",   "Path",         DM_STRING,      boffset(userPath),
       |   ^~~~~~~~~~
 ../../xdm/resource.c:271:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   271 | { "userPath",   "Path",         DM_STRING,      boffset(userPath),
       |                 ^~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
 ../config.h:32:23: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    32 | #define DEF_USER_PATH "/usr/local/bin:/usr/bin:/bin:/usr/games"
       |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -2475,7 +2423,6 @@
 ../../xdm/resource.c:275:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   275 | { "systemShell","Shell",        DM_STRING,      boffset(systemShell),
       |                 ^~~~~~~
-../../xdm/xdmcp.c: In function 'manage':
 ../config.h:29:26: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
    29 | #define DEF_SYSTEM_SHELL "/bin/sh"
       |                          ^~~~~~~~~
@@ -2494,12 +2441,6 @@
 ../../xdm/resource.c:278:33: note: in expansion of macro 'DEF_FAILSAFE_CLIENT'
   278 |                                 DEF_FAILSAFE_CLIENT },
       |                                 ^~~~~~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:1208:45: warning: passing argument 3 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1208 |                 send_failed (from, fromlen, "(no name)", sessionID,
-      |                                             ^~~~~~~~~~~
-../../xdm/xdmcp.c:77:68: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                              ~~~~~~^~~~
 ../../xdm/resource.c:279:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   279 | { "userAuthDir","UserAuthDir",  DM_STRING,      boffset(userAuthDir),
       |   ^~~~~~~~~~~~~
@@ -2512,12 +2453,6 @@
 ../../xdm/resource.c:280:33: note: in expansion of macro 'DEF_USER_AUTH_DIR'
   280 |                                 DEF_USER_AUTH_DIR },
       |                                 ^~~~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:1209:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1209 |                   "out of memory", fd);
-      |                   ^~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                                                            ~~~~~~^~~~~~
 ../../xdm/resource.c:281:3: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   281 | { "chooser",    "Chooser",      DM_STRING,      boffset(chooser),
       |   ^~~~~~~~~
@@ -2530,54 +2465,39 @@
 ../../xdm/resource.c:282:33: note: in expansion of macro 'DEF_CHOOSER'
   282 |                                 DEF_CHOOSER },
       |                                 ^~~~~~~~~~~
-../../xdm/xdmcp.c:1222:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1222 |                   "out of memory", fd);
-      |                   ^~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                                                            ~~~~~~^~~~~~
-../../xdm/xdmcp.c:1239:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1239 |                   "out of memory", fd);
-      |                   ^~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                                                            ~~~~~~^~~~~~
 ../../xdm/resource.c:364:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   364 | {"-server",     NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~~
 ../../xdm/resource.c:365:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   365 | {"-udpPort",    NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~~~
-../../xdm/xdmcp.c:1248:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1248 |                   "out of memory", fd);
-      |                   ^~~~~~~~~~~~~~~
-../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                                                            ~~~~~~^~~~~~
+mv -f .deps/mitauth.Tpo .deps/mitauth.Po
 ../../xdm/resource.c:366:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   366 | {"-error",      NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~
+../../xdm/session.c: In function 'StartClient':
 ../../xdm/resource.c:367:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   367 | {"-resources",  NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~~~~~
 ../../xdm/resource.c:368:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   368 | {"-session",    NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~~~
+../../xdm/session.c:836:17: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result]
+  836 |                 chdir ("/");
+      |                 ^~~~~~~~~~~
 ../../xdm/resource.c:369:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   369 | {"-debug",      NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~~~
-../../xdm/xdmcp.c:1282:23: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1282 |                       "out of memory", fd);
-      |                       ^~~~~~~~~~~~~~~
 ../../xdm/resource.c:370:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   370 | {"-xrm",        NULL,                   XrmoptionSkipArg,       (caddr_t) NULL },
       |  ^~~~~~
-../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
-   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
-      |                                                                                            ~~~~~~^~~~~~
+../../xdm/choose.c: In function 'RunChooser':
 ../../xdm/resource.c:371:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   371 | {"-config",     ".configFile",          XrmoptionSepArg,        (caddr_t) NULL }
       |  ^~~~~~~~~
+../../xdm/choose.c:512:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
+  512 | RunChooser (struct display *d)
+      | ^~~~~~~~~~
 ../../xdm/resource.c:371:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   371 | {"-config",     ".configFile",          XrmoptionSepArg,        (caddr_t) NULL }
       |                 ^~~~~~~~~~~~~
@@ -2596,7 +2516,12 @@
 ../../xdm/resource.c:377:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   377 | {"-error",      ".errorLogFile",        XrmoptionSepArg,        (caddr_t) NULL },
       |  ^~~~~~~~
-../../xdm/xdmcp.c: In function 'NetworkAddressToHostname':
+../../xdm/file.c:231:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  231 |         { "local",              { Local, Permanent, FromFile } },
+      |           ^~~~~~~
+../../xdm/file.c:232:11: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  232 |         { "foreign",            { Foreign, Permanent, FromFile } },
+      |           ^~~~~~~~~
 ../../xdm/resource.c:377:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   377 | {"-error",      ".errorLogFile",        XrmoptionSepArg,        (caddr_t) NULL },
       |                 ^~~~~~~~~~~~~~~
@@ -2606,9 +2531,6 @@
 ../../xdm/resource.c:378:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   378 | {"-resources",  "*resources",           XrmoptionSepArg,        (caddr_t) NULL },
       |                 ^~~~~~~~~~~~
-../../xdm/xdmcp.c:1419:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 1419 |             char *local_name = "";
-      |                                ^~
 ../../xdm/resource.c:379:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   379 | {"-session",    "*session",             XrmoptionSepArg,        (caddr_t) NULL },
       |  ^~~~~~~~~~
@@ -2627,6 +2549,10 @@
 ../../xdm/resource.c:382:2: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   382 | {"-daemon",     ".daemonMode",          XrmoptionNoArg,         "true"         },
       |  ^~~~~~~~~
+../../xdm/util.c: In function 'makeEnv':
+../../xdm/util.c:104:9: warning: ignoring return value of 'asprintf' declared with attribute 'warn_unused_result' [-Wunused-result]
+  104 |         asprintf(&result, "%s=%s", name, value);
+      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:382:17: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
   382 | {"-daemon",     ".daemonMode",          XrmoptionNoArg,         "true"         },
       |                 ^~~~~~~~~~~~~
@@ -2661,9 +2587,88 @@
 ../../xdm/resource.c:420:38: note: in expansion of macro 'DEF_XDM_CONFIG'
   420 |                  DM_STRING, &config, DEF_XDM_CONFIG);
       |                                      ^~~~~~~~~~~~~~
+../../xdm/util.c: In function 'parseArgs':
+../../xdm/util.c:236:41: warning: pointer 'argv' may be used after 'realloc' [-Wuse-after-free]
+  236 |                                         free (argv);
+      |                                         ^~~~~~~~~~~
+../../xdm/util.c:231:43: note: call to 'realloc' here
+  231 |                                 newargv = realloc ((char *) argv,
+      |                                           ^~~~~~~~~~~~~~~~~~~~~~~
+  232 |                                         (unsigned) ((i + 2) * sizeof (char *)));
+      |                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ../../xdm/resource.c:296:14: note: expected 'char *' but argument is of type 'const char *'
   296 |     char    *default_value)
       |     ~~~~~~~~~^~~~~~~~~~~~~
+gcc -DHAVE_CONFIG_H -I. -I../../xdm -I..  -I../../include -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -MT xdmcp.o -MD -MP -MF .deps/xdmcp.Tpo -c -o xdmcp.o ../../xdm/xdmcp.c
+../../xdm/server.c: In function '_SysErrorMsg':
+../../xdm/server.c:68:19: warning: return discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+   68 |     return (s ? s : "unknown error");
+      |            ~~~~~~~^~~~~~~~~~~~~~~~~~
+mv -f .deps/reset.Tpo .deps/reset.Po
+../../xdm/session.c: In function 'SessionExit':
+../../xdm/session.c:508:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
+  508 | SessionExit (struct display *d, int status, int removeAuth)
+      | ^~~~~~~~~~~
+mv -f .deps/policy.Tpo .deps/policy.Po
+../../xdm/auth.c:128:25: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+  128 | { (unsigned short) 18,  "MIT-MAGIC-COOKIE-1",
+      |                         ^~~~~~~~~~~~~~~~~~~~
+../../xdm/auth.c: In function 'SaveServerAuthorizations':
+../../xdm/auth.c:453:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
+  453 |             if (auths[i]->data_length > 0)
+      |             ^~
+../../xdm/auth.c:458:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
+  458 |                 (void) fflush (auth_file);
+      |                 ^
+../../xdm/auth.c: In function 'SetUserAuthorization':
+../../xdm/session.c: In function 'SessionPingFailed':
+../../xdm/auth.c:1317:45: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1317 |         home = getEnv (verify->userEnviron, "HOME");
+      |                                             ^~~~~~
+../../xdm/session.c:285:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
+  285 | SessionPingFailed (struct display *d)
+      | ^~~~~~~~~~~~~~~~~
+In file included from ../../xdm/auth.c:43:
+../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
+  468 | extern char *getEnv (char **e, char *name);
+      |                                ~~~~~~^~~~
+../../xdm/session.c: In function 'ManageSession':
+../../xdm/session.c:322:1: warning: function might be candidate for attribute 'noreturn' [-Wsuggest-attribute=noreturn]
+  322 | ManageSession (struct display *d)
+      | ^~~~~~~~~~~~~
+mv -f .deps/error.Tpo .deps/error.Po
+mv -f .deps/streams.Tpo .deps/streams.Po
+../../xdm/auth.c:1470:37: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1470 |                                     "XAUTHORITY", envname);
+      |                                     ^~~~~~~~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
+../../xdm/auth.c:1472:37: warning: passing argument 2 of 'setEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1472 |                                     "XAUTHORITY", envname);
+      |                                     ^~~~~~~~~~~~
+../../include/dm.h:466:39: note: expected 'char *' but argument is of type 'const char *'
+  466 | extern char **setEnv (char **e, char *name, char *value);
+      |                                 ~~~~~~^~~~
+../../xdm/auth.c: In function 'RemoveUserAuthorization':
+mv -f .deps/protodpy.Tpo .deps/protodpy.Po
+../../xdm/auth.c:1494:41: warning: passing argument 2 of 'getEnv' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1494 |     home = getEnv (verify->userEnviron, "HOME");
+      |                                         ^~~~~~
+../../include/dm.h:468:38: note: expected 'char *' but argument is of type 'const char *'
+  468 | extern char *getEnv (char **e, char *name);
+      |                                ~~~~~~^~~~
+../../xdm/auth.c: In function 'MakeServerAuthFile':
+../../xdm/auth.c:350:28: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
+  350 |                     (void) chown(d->authFile, 0, statb.st_gid);
+      |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+mv -f .deps/genauth.Tpo .deps/genauth.Po
+../../xdm/auth.c: In function 'SetUserAuthorization':
+../../xdm/auth.c:1476:13: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
+ 1476 |             chown (envname, verify->uid, verify->gid);
+      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+mv -f .deps/netaddr.Tpo .deps/netaddr.Po
+mv -f .deps/dpylist.Tpo .deps/dpylist.Po
 ../../xdm/dm.c: In function 'main':
 ../../xdm/dm.c:1011:42: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
  1011 |         (void) snprintf (pidstr, 11, "%ld", (long) getpid ());
@@ -2681,28 +2686,59 @@
       |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    70 |                                    __va_arg_pack ());
       |                                    ~~~~~~~~~~~~~~~~~
-mv -f .deps/daemon.Tpo .deps/daemon.Po
+../../xdm/xdmcp.c: In function 'manage':
+../../xdm/xdmcp.c:1208:45: warning: passing argument 3 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1208 |                 send_failed (from, fromlen, "(no name)", sessionID,
+      |                                             ^~~~~~~~~~~
+../../xdm/xdmcp.c:77:68: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                              ~~~~~~^~~~
+../../xdm/xdmcp.c:1209:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1209 |                   "out of memory", fd);
+      |                   ^~~~~~~~~~~~~~~
+../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                                                            ~~~~~~^~~~~~
+../../xdm/xdmcp.c:1222:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1222 |                   "out of memory", fd);
+      |                   ^~~~~~~~~~~~~~~
+../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                                                            ~~~~~~^~~~~~
+../../xdm/xdmcp.c:1239:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1239 |                   "out of memory", fd);
+      |                   ^~~~~~~~~~~~~~~
+../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                                                            ~~~~~~^~~~~~
+../../xdm/xdmcp.c:1248:19: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1248 |                   "out of memory", fd);
+      |                   ^~~~~~~~~~~~~~~
+../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                                                            ~~~~~~^~~~~~
+../../xdm/xdmcp.c:1282:23: warning: passing argument 5 of 'send_failed' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1282 |                       "out of memory", fd);
+      |                       ^~~~~~~~~~~~~~~
+../../xdm/xdmcp.c:77:98: note: expected 'char *' but argument is of type 'const char *'
+   77 | static void send_failed (struct sockaddr *from, int fromlen, char *name, CARD32 sessionID, char *reason, int fd);
+      |                                                                                            ~~~~~~^~~~~~
+../../xdm/xdmcp.c: In function 'NetworkAddressToHostname':
+../../xdm/xdmcp.c:1419:32: warning: initialization discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
+ 1419 |             char *local_name = "";
+      |                                ^~
 mv -f .deps/file.Tpo .deps/file.Po
-mv -f .deps/dpylist.Tpo .deps/dpylist.Po
-mv -f .deps/error.Tpo .deps/error.Po
-mv -f .deps/genauth.Tpo .deps/genauth.Po
-mv -f .deps/mitauth.Tpo .deps/mitauth.Po
-mv -f .deps/netaddr.Tpo .deps/netaddr.Po
-mv -f .deps/protodpy.Tpo .deps/protodpy.Po
-mv -f .deps/reset.Tpo .deps/reset.Po
-mv -f .deps/server.Tpo .deps/server.Po
-mv -f .deps/streams.Tpo .deps/streams.Po
-mv -f .deps/choose.Tpo .deps/choose.Po
-mv -f .deps/policy.Tpo .deps/policy.Po
 mv -f .deps/util.Tpo .deps/util.Po
+mv -f .deps/server.Tpo .deps/server.Po
 mv -f .deps/resource.Tpo .deps/resource.Po
+mv -f .deps/choose.Tpo .deps/choose.Po
 mv -f .deps/socket.Tpo .deps/socket.Po
+mv -f .deps/access.Tpo .deps/access.Po
 mv -f .deps/session.Tpo .deps/session.Po
 mv -f .deps/dm.Tpo .deps/dm.Po
-mv -f .deps/access.Tpo .deps/access.Po
 mv -f .deps/auth.Tpo .deps/auth.Po
 mv -f .deps/xdmcp.Tpo .deps/xdmcp.Po
-/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -lXmu -lXt -lX11 -lXau  -lXdmcp  -export-dynamic -Wl,-z,relro -Wl,-z,now -o xdm access.o auth.o choose.o daemon.o dm.o dpylist.o error.o file.o genauth.o mitauth.o netaddr.o policy.o protodpy.o reset.o resource.o server.o session.o socket.o streams.o util.o xdmcp.o      -lselinux -lpam -lcrypt 
+/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid       -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -lXmu -lXt -lX11 -lXau  -lXdmcp  -export-dynamic -Wl,-z,relro -Wl,-z,now -o xdm access.o auth.o choose.o daemon.o dm.o dpylist.o error.o file.o genauth.o mitauth.o netaddr.o policy.o protodpy.o reset.o resource.o server.o session.o socket.o streams.o util.o xdmcp.o      -lselinux -lpam -lcrypt 
 libtool: link: gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -Wl,-z -Wl,relro -Wl,-z -Wl,now -o xdm access.o auth.o choose.o daemon.o dm.o dpylist.o error.o file.o genauth.o mitauth.o netaddr.o policy.o protodpy.o reset.o resource.o server.o session.o socket.o streams.o util.o xdmcp.o -Wl,--export-dynamic  -lXmu -lXt -lX11 -lXau -lXdmcp -lselinux -lpam -lcrypt
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/xdm'
 Making all in xdmshell
@@ -2719,7 +2755,7 @@
   144 |     args[3] = "0";
       |             ^
 mv -f .deps/xdmshell.Tpo .deps/xdmshell.Po
-/bin/bash ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid     -I/usr/include/uuid     -I/usr/include/uuid  -DBINDIR="\"/usr/bin\"" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive  -Wl,-z,relro -Wl,-z,now -o xdmshell xdmshell.o  -lselinux -lpam -lcrypt 
+/bin/sh ../libtool  --tag=CC   --mode=link gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid     -I/usr/include/uuid     -I/usr/include/uuid  -DBINDIR="\"/usr/bin\"" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive  -Wl,-z,relro -Wl,-z,now -o xdmshell xdmshell.o  -lselinux -lpam -lcrypt 
 libtool: link: gcc -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -I/usr/include/uuid -I/usr/include/uuid -I/usr/include/uuid -DBINDIR=\"/usr/bin\" -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xdm-1.1.11=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -fpermissive -Wl,-z -Wl,relro -Wl,-z -Wl,now -o xdmshell xdmshell.o  -lselinux -lpam -lcrypt
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/xdmshell'
 make[3]: Entering directory '/build/reproducible-path/xdm-1.1.11/build'
@@ -2729,7 +2765,7 @@
 make[1]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build'
 >stampdir/build
  fakeroot debian/rules binary
-/bin/sh: 1: Bad substitution
+/bin/sh: line 1: ${VERSION\#\#*-}: bad substitution
 dh_testdir
 dh_testroot
 dh_prep
@@ -2750,7 +2786,7 @@
 make[3]: Entering directory '/build/reproducible-path/xdm-1.1.11/build/chooser'
 make[3]: Nothing to be done for 'install-exec-am'.
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
-  /bin/bash ../libtool   --mode=install /usr/bin/install -c chooser '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
+  /bin/sh ../libtool   --mode=install /usr/bin/install -c chooser '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
 libtool: install: /usr/bin/install -c chooser /build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm/chooser
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/chooser'
 make[2]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/chooser'
@@ -2765,11 +2801,11 @@
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
- /usr/bin/install -c -m 644 ../../config/Xaccess '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
  /usr/bin/install -c -m 644 ../../config/xorg-bw.xpm ../../config/xorg.xpm '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/share/X11/xdm/pixmaps'
+ /usr/bin/install -c -m 644 ../../config/Xaccess '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
  /usr/bin/install -c ../../config/GiveConsole ../../config/TakeConsole ../../config/Xsetup_0 ../../config/Xwilling '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
- /usr/bin/install -c -m 644 xdm-config Xresources Xservers '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
  /usr/bin/install -c Xreset Xsession Xstartup '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
+ /usr/bin/install -c -m 644 xdm-config Xresources Xservers '/build/reproducible-path/xdm-1.1.11/debian/tmp/etc/X11/xdm'
 make[4]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/config'
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/config'
 make[2]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/config'
@@ -2778,7 +2814,7 @@
 make[3]: Entering directory '/build/reproducible-path/xdm-1.1.11/build/greeter'
 make[3]: Nothing to be done for 'install-exec-am'.
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
- /bin/bash ../libtool   --mode=install /usr/bin/install -c   libXdmGreet.la '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
+ /bin/sh ../libtool   --mode=install /usr/bin/install -c   libXdmGreet.la '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm'
 libtool: install: /usr/bin/install -c .libs/libXdmGreet.so /build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm/libXdmGreet.so
 libtool: install: /usr/bin/install -c .libs/libXdmGreet.lai /build/reproducible-path/xdm-1.1.11/debian/tmp/usr/lib/X11/xdm/libXdmGreet.la
 libtool: warning: remember to run 'libtool --finish /usr/lib/X11/xdm'
@@ -2804,7 +2840,7 @@
 make[3]: Entering directory '/build/reproducible-path/xdm-1.1.11/build/xdm'
 make[3]: Nothing to be done for 'install-data-am'.
  /usr/bin/mkdir -p '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/bin'
-  /bin/bash ../libtool   --mode=install /usr/bin/install -c xdm '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/bin'
+  /bin/sh ../libtool   --mode=install /usr/bin/install -c xdm '/build/reproducible-path/xdm-1.1.11/debian/tmp/usr/bin'
 libtool: install: /usr/bin/install -c xdm /build/reproducible-path/xdm-1.1.11/debian/tmp/usr/bin/xdm
 make[3]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/xdm'
 make[2]: Leaving directory '/build/reproducible-path/xdm-1.1.11/build/xdm'
@@ -2898,12 +2934,14 @@
 dpkg-buildpackage: info: binary-only upload (no source included)
 dpkg-genchanges: info: not including original source code in upload
 I: copying local configuration
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/B01_cleanup starting
+I: user script /srv/workspace/pbuilder/1468843/tmp/hooks/B01_cleanup finished
 I: unmounting dev/ptmx filesystem
 I: unmounting dev/pts filesystem
 I: unmounting dev/shm filesystem
 I: unmounting proc filesystem
 I: unmounting sys filesystem
 I: cleaning the build env 
-I: removing directory /srv/workspace/pbuilder/1841155 and its subdirectories
-I: Current time: Sat Jan 31 19:55:30 -12 2026
-I: pbuilder-time-stamp: 1769932530
+I: removing directory /srv/workspace/pbuilder/1468843 and its subdirectories
+I: Current time: Mon Dec 30 15:34:29 +14 2024
+I: pbuilder-time-stamp: 1735522469