Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/n/nat/nat_1.0-6.1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/nat-1.0-6.1l_bshtc_/nat_1.0-6.1_amd64.buildinfo Get source package info: nat=1:1.0-6.1 Source URL: http://snapshot.notset.fr/mr/package/nat/1:1.0-6.1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.71-2 automake=1:1.16.5-1.3 autopoint=0.21-6 autotools-dev=20220109.1 base-files=12.2 base-passwd=3.5.52 bash=5.1-6+b1 binutils=2.38-4 binutils-common=2.38-4 binutils-x86-64-linux-gnu=2.38-4 bsdextrautils=2.38-4 bsdutils=1:2.38-4 build-essential=12.9 bzip2=1.0.8-5 coreutils=8.32-4.1 cpp=4:11.2.0-2 cpp-11=11.3.0-1 dash=0.5.11+git20210903+057cd650a4ed-8 debconf=1.5.79 debhelper=13.7.1 debianutils=5.7-0.2 dh-autoreconf=20 dh-strip-nondeterminism=1.13.0-1 diffutils=1:3.7-5 dpkg=1.21.7 dpkg-dev=1.21.7 dwz=0.14-1 file=1:5.41-4 findutils=4.9.0-3 g++=4:11.2.0-2 g++-11=11.3.0-1 gcc=4:11.2.0-2 gcc-11=11.3.0-1 gcc-11-base=11.3.0-1 gcc-12-base=12.1.0-2 gettext=0.21-6 gettext-base=0.21-6 grep=3.7-1 groff-base=1.22.4-8 gzip=1.12-1 hostname=3.23 init-system-helpers=1.62 intltool-debian=0.35.0+20060710.5 libacl1=2.3.1-1 libarchive-zip-perl=1.68-1 libasan6=11.3.0-1 libatomic1=12.1.0-2 libattr1=1:2.5.1-1 libaudit-common=1:3.0.7-1 libaudit1=1:3.0.7-1+b1 libbinutils=2.38-4 libblkid1=2.38-4 libbz2-1.0=1.0.8-5 libc-bin=2.33-7 libc-dev-bin=2.33-7 libc6=2.33-7 libc6-dev=2.33-7 libcap-ng0=0.7.9-2.2+b2 libcap2=1:2.44-1 libcc1-0=12.1.0-2 libcom-err2=1.46.5-2 libcrypt-dev=1:4.4.27-1.1 libcrypt1=1:4.4.27-1.1 libctf-nobfd0=2.38-4 libctf0=2.38-4 libdb5.3=5.3.28+dfsg1-0.9 libdebconfclient0=0.262 libdebhelper-perl=13.7.1 libdpkg-perl=1.21.7 libelf1=0.187-1 libfile-stripnondeterminism-perl=1.13.0-1 libgcc-11-dev=11.3.0-1 libgcc-s1=12.1.0-2 libgcrypt20=1.10.1-2 libgdbm-compat4=1.23-1 libgdbm6=1.23-1 libgmp10=2:6.2.1+dfsg-3 libgomp1=12.1.0-2 libgpg-error0=1.45-2 libgssapi-krb5-2=1.19.2-2+b2 libicu71=71.1-3 libisl23=0.24-2 libitm1=12.1.0-2 libk5crypto3=1.19.2-2+b2 libkeyutils1=1.6.1-3 libkrb5-3=1.19.2-2+b2 libkrb5support0=1.19.2-2+b2 liblsan0=12.1.0-2 liblz4-1=1.9.3-2 liblzma5=5.2.5-2.1 libmagic-mgc=1:5.41-4 libmagic1=1:5.41-4 libmount1=2.38-4 libmpc3=1.2.1-2 libmpfr6=4.1.0-3 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libpam-modules=1.4.0-13 libpam-modules-bin=1.4.0-13 libpam-runtime=1.4.0-13 libpam0g=1.4.0-13 libpcre2-8-0=10.40-1 libpcre3=2:8.39-14 libperl5.34=5.34.0-4 libpipeline1=1.5.6-1 libquadmath0=12.1.0-2 libseccomp2=2.5.4-1 libselinux1=3.3-1+b2 libsigsegv2=2.14-1 libsmartcols1=2.38-4 libssl3=3.0.3-3 libstdc++-11-dev=11.3.0-1 libstdc++6=12.1.0-2 libsub-override-perl=0.09-2 libsystemd0=250.4-1 libtinfo6=6.3+20220423-2 libtirpc-common=1.3.2-2 libtirpc-dev=1.3.2-2 libtirpc3=1.3.2-2 libtool=2.4.7-4 libtsan0=11.3.0-1 libubsan1=12.1.0-2 libuchardet0=0.0.7-1 libudev1=250.4-1 libunistring2=1.0-1 libuuid1=2.38-4 libxml2=2.9.14+dfsg-1 libzstd1=1.5.2+dfsg-1 linux-libc-dev=5.17.6-1+b1 login=1:4.11.1+dfsg1-2 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4.1 man-db=2.10.2-1 mawk=1.3.4.20200120-3+b1 ncurses-base=6.3+20220423-2 ncurses-bin=6.3+20220423-2 patch=2.7.6-7 perl=5.34.0-4 perl-base=5.34.0-4 perl-modules-5.34=5.34.0-4 po-debconf=1.0.21+nmu1 rpcsvc-proto=1.4.2-4 sed=4.8-1 sensible-utils=0.0.17 sysvinit-utils=3.03-1 tar=1.34+dfsg-1 util-linux=2.38-4 util-linux-extra=2.38-4 xz-utils=5.2.5-2.1 zlib1g=1:1.2.11.dfsg-4 --variant=apt --aptopt=Acquire::Check-Valid-Until "false" --aptopt=Acquire::http::Dl-Limit "1000"; --aptopt=Acquire::https::Dl-Limit "1000"; --aptopt=Acquire::Retries "5"; --aptopt=APT::Get::allow-downgrades "true"; --keyring=/usr/share/keyrings/ --essential-hook=chroot "$1" sh -c "apt-get --yes install fakeroot util-linux" --essential-hook=copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ --essential-hook=chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20220527T032222Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20220527T032222Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20220516T211705Z/ unstable main' >> /etc/apt/sources.list && apt-get update" --customize-hook=chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash --customize-hook=chroot "$1" env sh -c "apt-get source --only-source -d nat=1:1.0-6.1 && mkdir -p /build/nat-aoxnxN && dpkg-source --no-check -x /*.dsc /build/nat-aoxnxN/nat-1.0 && chown -R builduser:builduser /build/nat-aoxnxN" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/nat-aoxnxN/nat-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1650984496" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/nat-aoxnxN /tmp/nat-1.0-6.1l_bshtc_ bookworm /dev/null deb http://snapshot.notset.fr/archive/debian/20220516T211705Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: null I: using /tmp/mmdebstrap.d08reeWUr0 as tempdir I: running apt-get update... I: downloading packages with apt... I: extracting archives... I: installing essential packages... I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "apt-get --yes install fakeroot util-linux"' exec /tmp/mmdebstrap.d08reeWUr0 Reading package lists... Building dependency tree... util-linux is already the newest version (2.38-4). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 135 kB of archives. After this operation, 406 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20220516T211705Z unstable/main amd64 libfakeroot amd64 1.28-1 [48.2 kB] Get:2 http://snapshot.notset.fr/archive/debian/20220516T211705Z unstable/main amd64 fakeroot amd64 1.28-1 [87.2 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 135 kB in 0s (1116 kB/s) Selecting previously unselected package libfakeroot:amd64. (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 ... 4628 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.28-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.28-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.28-1_amd64.deb ... Unpacking fakeroot (1.28-1) ... Setting up libfakeroot:amd64 (1.28-1) ... Setting up fakeroot (1.28-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.33-7) ... I: running special hook: copy-in /usr/share/keyrings/debian-archive-bullseye-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-security-automatic.gpg /usr/share/keyrings/debian-archive-bullseye-stable.gpg /usr/share/keyrings/debian-archive-buster-automatic.gpg /usr/share/keyrings/debian-archive-buster-security-automatic.gpg /usr/share/keyrings/debian-archive-buster-stable.gpg /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-archive-removed-keys.gpg /usr/share/keyrings/debian-archive-stretch-automatic.gpg /usr/share/keyrings/debian-archive-stretch-security-automatic.gpg /usr/share/keyrings/debian-archive-stretch-stable.gpg /usr/share/keyrings/debian-ports-archive-keyring-removed.gpg /usr/share/keyrings/debian-ports-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg /etc/apt/trusted.gpg.d/ I: running --essential-hook in shell: sh -c 'chroot "$1" sh -c "rm /etc/apt/sources.list && echo 'deb http://snapshot.notset.fr/archive/debian/20220527T032222Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20220527T032222Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20220516T211705Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.d08reeWUr0 Get:1 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm InRelease [130 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20220516T211705Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main Sources [12.0 MB] Get:4 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main amd64 Packages [11.5 MB] Fetched 23.5 MB in 20s (1193 kB/s) Reading package lists... I: installing remaining packages inside the chroot... I: running --customize-hook in shell: sh -c 'chroot "$1" useradd --no-create-home -d /nonexistent -p "" builduser -s /bin/bash' exec /tmp/mmdebstrap.d08reeWUr0 I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d nat=1:1.0-6.1 && mkdir -p /build/nat-aoxnxN && dpkg-source --no-check -x /*.dsc /build/nat-aoxnxN/nat-1.0 && chown -R builduser:builduser /build/nat-aoxnxN"' exec /tmp/mmdebstrap.d08reeWUr0 Reading package lists... Need to get 122 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main nat 1:1.0-6.1 (dsc) [1734 B] Get:2 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main nat 1:1.0-6.1 (tar) [111 kB] Get:3 http://snapshot.notset.fr/archive/debian/20220527T032222Z bookworm/main nat 1:1.0-6.1 (diff) [9500 B] Fetched 122 kB in 0s (763 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'nat_1.0-6.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting nat in /build/nat-aoxnxN/nat-1.0 dpkg-source: info: unpacking nat_1.0.orig.tar.gz dpkg-source: info: unpacking nat_1.0-6.1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 0001_add_samples.patch dpkg-source: info: applying 0002_patch_manpage.patch dpkg-source: info: applying 0003_add_patch.patch dpkg-source: info: applying 0004_add_sig_handler.patch I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/nat-aoxnxN/nat-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1650984496" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.d08reeWUr0 dpkg-buildpackage: info: source package nat dpkg-buildpackage: info: source version 1:1.0-6.1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Ying-Chun Liu (PaulLiu) dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean dh clean dh_auto_clean make -j10 clean make[1]: Entering directory '/build/nat-aoxnxN/nat-1.0' Makefile:383: warning: ignoring prerequisites on suffix rule definition rm -f core *.o *~ nat client make[1]: Leaving directory '/build/nat-aoxnxN/nat-1.0' dh_clean debian/rules build-arch dh build-arch dh_update_autotools_config -a dh_autoreconf -a dh_auto_configure -a dh_auto_build -a make -j10 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/nat-aoxnxN/nat-1.0' Makefile:383: warning: ignoring prerequisites on suffix rule definition Compiling nat.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c nat.c Compiling client.c Compiling util.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c client.c nat.c: In function ‘clear_block’: nat.c:225:72: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘char **’ [-Wformat=] 225 | fprintf (stderr, "OOPS! clear_block tried to clear bogus entry %d @ %x\n", | ~^ | | | unsigned int 226 | idx, blk); | ~~~ | | | char ** gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c util.c Compiling system.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c system.c Compiling nmb.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c nmb.c Compiling charset.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c charset.c Compiling parse_ip.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c parse_ip.c Compiling sighandler.c gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -c sighandler.c charset.c: In function ‘add_dos_char’: charset.c:45:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 45 | if (lower) dos_char_map[(char)lower] = 1; | ^~~~~~~~~~~ charset.c:46:27: warning: array subscript has type ‘char’ [-Wchar-subscripts] 46 | if (upper) dos_char_map[(char)upper] = 1; | ^~~~~~~~~~~ charset.c:48:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] 48 | lower_char_map[(char)upper] = (char)lower; | ^~~~~~~~~~~ charset.c:49:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] 49 | upper_char_map[(char)lower] = (char)upper; | ^~~~~~~~~~~ charset.c: In function ‘charset_initialise’: charset.c:65:18: warning: array subscript has type ‘char’ [-Wchar-subscripts] 65 | dos_char_map[(char)i] = 0; | ^~~~~~~ charset.c:76:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 76 | if (isupper(c)) lower_char_map[c] = tolower(c); | ^ charset.c:77:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 77 | if (islower(c)) upper_char_map[c] = toupper(c); | ^ In file included from includes.h:960, from util.c:29: util.c: In function ‘name_mangle’: charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:921:14: note: in expansion of macro ‘toupper’ 921 | char c = toupper(in[i]); | ^~~~~~~ util.c: In function ‘StrCaseCmp’: charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1174:10: note: in expansion of macro ‘tolower’ 1174 | for (; tolower(*s) == tolower(*t); ++s, ++t) | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1174:25: note: in expansion of macro ‘tolower’ 1174 | for (; tolower(*s) == tolower(*t); ++s, ++t) | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1177:10: note: in expansion of macro ‘tolower’ 1177 | return tolower(*s) - tolower(*t); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1177:24: note: in expansion of macro ‘tolower’ 1177 | return tolower(*s) - tolower(*t); | ^~~~~~~ util.c: In function ‘StrnCaseCmp’: client.c: In function ‘cmp_stash’: client.c:383:5: warning: implicit declaration of function ‘natprintf’; did you mean ‘dprintf’? [-Wimplicit-function-declaration] 383 | natprintf("[*]--- WARNING: Was able to exercise .. bug in: %s\n", cur_dir); | ^~~~~~~~~ | dprintf client.c:388:5: warning: implicit declaration of function ‘fill_vuln’ [-Wimplicit-function-declaration] 388 | fill_vuln ("Was able to exercise .. bug in directory:", cur_dir); | ^~~~~~~~~ client.c: In function ‘cmd_cd’: client.c:676:15: warning: unused variable ‘dname’ [-Wunused-variable] 676 | pstring dname; | ^~~~~ client.c:673:11: warning: unused variable ‘saved_dir’ [-Wunused-variable] 673 | pstring saved_dir; | ^~~~~~~~~ sighandler.c: In function ‘sighandler’: sighandler.c:68:25: warning: implicit declaration of function ‘close_sockets’ [-Wimplicit-function-declaration] 68 | close_sockets(); | ^~~~~~~~~~~~~ sighandler.c:62:13: warning: unused variable ‘murderer’ [-Wunused-variable] 62 | int murderer = 0; | ^~~~~~~~ parse_ip.c: In function ‘parse_ip’: parse_ip.c:75:12: warning: implicit declaration of function ‘natprintf’; did you mean ‘dprintf’? [-Wimplicit-function-declaration] 75 | natprintf("[*]--- Unknown host: %s\n", one); | ^~~~~~~~~ | dprintf client.c: In function ‘do_short_dir’: client.c:1067:1: warning: label ‘sd_skip’ defined but not used [-Wunused-label] 1067 | sd_skip: | ^~~~~~~ parse_ip.c:93:19: warning: implicit declaration of function ‘inet_addr’ [-Wimplicit-function-declaration] 93 | ip1 = inet_addr(r1); | ^~~~~~~~~ client.c: In function ‘do_long_dir’: client.c:1301:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1301 | if (resp_data) free(resp_data); resp_data = NULL; | ^~ client.c:1301:39: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1301 | if (resp_data) free(resp_data); resp_data = NULL; | ^~~~~~~~~ client.c:1302:7: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 1302 | if (resp_param) free(resp_param); resp_param = NULL; | ^~ client.c:1302:41: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 1302 | if (resp_param) free(resp_param); resp_param = NULL; | ^~~~~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1186:9: note: in expansion of macro ‘tolower’ 1186 | if (tolower(*s) != tolower(*t)) return(tolower(*s) - tolower(*t)); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1186:24: note: in expansion of macro ‘tolower’ 1186 | if (tolower(*s) != tolower(*t)) return(tolower(*s) - tolower(*t)); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1186:44: note: in expansion of macro ‘tolower’ 1186 | if (tolower(*s) != tolower(*t)) return(tolower(*s) - tolower(*t)); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1186:58: note: in expansion of macro ‘tolower’ 1186 | if (tolower(*s) != tolower(*t)) return(tolower(*s) - tolower(*t)); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1189:17: note: in expansion of macro ‘tolower’ 1189 | if (n) return(tolower(*s) - tolower(*t)); | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1189:31: note: in expansion of macro ‘tolower’ 1189 | if (n) return(tolower(*s) - tolower(*t)); | ^~~~~~~ util.c: In function ‘strlower’: charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ charset.h:63:36: note: in expansion of macro ‘tolower’ 63 | #define isupper(c) (((char)(c)) != tolower(c)) | ^~~~~~~ util.c:1269:11: note: in expansion of macro ‘isupper’ 1269 | if (isupper(*s)) | ^~~~~~~ charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ util.c:1270:16: note: in expansion of macro ‘tolower’ 1270 | *s = tolower(*s); | ^~~~~~~ util.c: In function ‘strupper’: charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ charset.h:64:36: note: in expansion of macro ‘toupper’ 64 | #define islower(c) (((char)(c)) != toupper(c)) | ^~~~~~~ util.c:1294:11: note: in expansion of macro ‘islower’ 1294 | if (islower(*s)) | ^~~~~~~ charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:1295:14: note: in expansion of macro ‘toupper’ 1295 | *s = toupper(*s); | ^~~~~~~ util.c: In function ‘strhasupper’: charset.h:62:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 62 | #define tolower(c) lower_char_map[(char)(c)] | ^~~~~~~~~ charset.h:63:36: note: in expansion of macro ‘tolower’ 63 | #define isupper(c) (((char)(c)) != tolower(c)) | ^~~~~~~ util.c:1967:11: note: in expansion of macro ‘isupper’ 1967 | if (isupper(*s)) return(True); | ^~~~~~~ util.c: In function ‘strhaslower’: charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ charset.h:64:36: note: in expansion of macro ‘toupper’ 64 | #define islower(c) (((char)(c)) != toupper(c)) | ^~~~~~~ util.c:1991:11: note: in expansion of macro ‘islower’ 1991 | if (islower(*s)) return(True); | ^~~~~~~ util.c: In function ‘read_max_udp’: util.c:2309:7: warning: variable ‘selrtn’ set but not used [-Wunused-but-set-variable] 2309 | int selrtn; | ^~~~~~ In file included from includes.h:960, from util.c:29: util.c: In function ‘do_match’: client.c: In function ‘interpret_serr’: client.c:2162:16: warning: unused variable ‘reserr’ [-Wunused-variable] 2162 | register int reserr = 0; | ^~~~~~ client.c: In function ‘send_status’: client.c:2203:7: warning: implicit declaration of function ‘H_name_status’; did you mean ‘send_status’? [-Wimplicit-function-declaration] 2203 | x = H_name_status(udpfd, lookup, name_type, dest_ip); | ^~~~~~~~~~~~~ | send_status client.c: In function ‘send_setup’: client.c:2439:49: warning: "/*" within comment [-Wcomment] 2439 | if (!doencrypt) passlen--; /* WHY??!?!? */ | charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:2968:51: note: in expansion of macro ‘toupper’ 2968 | while(*str && (case_sig ? (*p != *str) : (toupper(*p)!=toupper(*str)))) | ^~~~~~~ charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:2968:64: note: in expansion of macro ‘toupper’ 2968 | while(*str && (case_sig ? (*p != *str) : (toupper(*p)!=toupper(*str)))) | ^~~~~~~ charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:2984:12: note: in expansion of macro ‘toupper’ 2984 | if(toupper(*str) != toupper(*p)) | ^~~~~~~ charset.h:61:35: warning: array subscript has type ‘char’ [-Wchar-subscripts] 61 | #define toupper(c) upper_char_map[(char)(c)] | ^~~~~~~~~ util.c:2984:29: note: in expansion of macro ‘toupper’ 2984 | if(toupper(*str) != toupper(*p)) | ^~~~~~~ util.c: In function ‘open_socket_in’: util.c:3722:11: warning: unused variable ‘host_name’ [-Wunused-variable] 3722 | pstring host_name; | ^~~~~~~~~ util.c:3720:19: warning: unused variable ‘hp’ [-Wunused-variable] 3720 | struct hostent *hp; | ^~ client.c: In function ‘send_login’: client.c:2749:11: warning: unused variable ‘dev’ [-Wunused-variable] 2749 | fstring dev; | ^~~ client.c: In function ‘browse_host’: client.c:3015:12: warning: variable ‘long_share_name’ set but not used [-Wunused-but-set-variable] 3015 | BOOL long_share_name=False; | ^~~~~~~~~~~~~~~ client.c: In function ‘step’: client.c:3432:16: warning: implicit declaration of function ‘Get_Hostbyaddr’; did you mean ‘gethostbyaddr’? [-Wimplicit-function-declaration] 3432 | p = (char *) Get_Hostbyaddr (dest_ip); | ^~~~~~~~~~~~~~ | gethostbyaddr client.c:3432:7: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 3432 | p = (char *) Get_Hostbyaddr (dest_ip); | ^ nmb.c: In function ‘interpret_node_status’: nmb.c:651:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 651 | if ((p[0] & 0x60) == 1) strcat(flags,"P "); | ^~ nmb.c:652:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 652 | if ((p[0] & 0x60) == 2) strcat(flags,"M "); | ^~ nmb.c:653:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 653 | if ((p[0] & 0x60) == 3) strcat(flags,"_ "); | ^~ client.c:3495:1: warning: label ‘phase_1’ defined but not used [-Wunused-label] 3495 | phase_1: /* pass the wacky rfc1002 stuff */ | ^~~~~~~ client.c:3360:16: warning: unused variable ‘i’ [-Wunused-variable] 3360 | register int i; | ^ client.c: In function ‘nas_step’: client.c:3948:16: warning: unused variable ‘i’ [-Wunused-variable] 3948 | register int i; | ^ nmb.c: In function ‘H_interpret_node_status’: nmb.c:804:6: warning: implicit declaration of function ‘natprintf’; did you mean ‘dprintf’? [-Wimplicit-function-declaration] 804 | natprintf("[*]--- Remote systems name tables:\n\n"); | ^~~~~~~~~ | dprintf nmb.c:819:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 819 | if ((p[0] & 0x60) == 1) strcat(flags,"P "); | ^~ nmb.c:820:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 820 | if ((p[0] & 0x60) == 2) strcat(flags,"M "); | ^~ nmb.c:821:25: warning: bitwise comparison always evaluates to false [-Wtautological-compare] 821 | if ((p[0] & 0x60) == 3) strcat(flags,"_ "); | ^~ client.c: In function ‘step’: client.c:3717:24: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1022 [-Wformat-overflow=] 3717 | sprintf(service,"\\\\%s\\IPC$", desthost); | ^~ ~~~~~~~~ client.c:3717:3: note: ‘sprintf’ output between 8 and 1031 bytes into a destination of size 1024 3717 | sprintf(service,"\\\\%s\\IPC$", desthost); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:3806:26: warning: ‘%s’ directive writing up to 1023 bytes into a region of size 1022 [-Wformat-overflow=] 3806 | sprintf (service, "\\\\%s\\%s", desthost, p); | ^~ ~~~~~~~~ nmb.c:849:38: warning: ‘%s’ directive writing up to 127 bytes into a region of size between 93 and 116 [-Wformat-overflow=] 849 | sprintf (tbuf, "%s (type 0x%x) %s", qname, type, flags); | ^~ ~~~~~ nmb.c:849:7: note: ‘sprintf’ output between 13 and 163 bytes into a destination of size 128 849 | sprintf (tbuf, "%s (type 0x%x) %s", qname, type, flags); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ client.c:3806:3: note: ‘sprintf’ output 4 or more bytes (assuming 1027) into a destination of size 1024 3806 | sprintf (service, "\\\\%s\\%s", desthost, p); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ At top level: client.c:2822:13: warning: ‘send_logout’ defined but not used [-Wunused-function] 2822 | static void send_logout(void ) | ^~~~~~~~~~~ client.c:1997:13: warning: ‘cmd_rmdir’ defined but not used [-Wunused-function] 1997 | static void cmd_rmdir(char *inbuf,char *outbuf ) | ^~~~~~~~~ client.c:1972:13: warning: ‘cmd_del’ defined but not used [-Wunused-function] 1972 | static void cmd_del(char *inbuf,char *outbuf ) | ^~~~~~~ client.c:1837:13: warning: ‘cmd_mkdir’ defined but not used [-Wunused-function] 1837 | static void cmd_mkdir(char *inbuf,char *outbuf) | ^~~~~~~~~ client.c:1766:13: warning: ‘cmd_get’ defined but not used [-Wunused-function] 1766 | static void cmd_get(void) | ^~~~~~~ client.c:1335:13: warning: ‘cmd_dir’ defined but not used [-Wunused-function] 1335 | static void cmd_dir(char *inbuf,char *outbuf) | ^~~~~~~ client.c:669:13: warning: ‘cmd_cd’ defined but not used [-Wunused-function] 669 | static void cmd_cd(char *inbuf,char *outbuf) | ^~~~~~ client.c:660:13: warning: ‘cmd_pwd’ defined but not used [-Wunused-function] 660 | static void cmd_pwd(void) | ^~~~~~~ client.c:587:12: warning: ‘printread’ defined but not used [-Wunused-function] 587 | static int printread(FILE *f,char *b,int n) | ^~~~~~~~~ gcc -DSTEPPING -DSCANNER -DVERBOSE -DWORKGROUP=\"WORKGROUP\" -DGUEST_ACCOUNT=\"nobody\" -DLINUX -DNO_ASMSIGNALH -ggdb -Wall -o nat nat.o client.o util.o system.o nmb.o charset.o parse_ip.o sighandler.o make[1]: Leaving directory '/build/nat-aoxnxN/nat-1.0' dh: command-omitted: The call to "dh_auto_test -a" was omitted due to "DEB_BUILD_OPTIONS=nocheck" create-stamp debian/debhelper-build-stamp fakeroot debian/rules binary-arch dh binary-arch dh_testroot -a dh_prep -a dh_installdirs -a debian/rules override_dh_auto_install make[1]: Entering directory '/build/nat-aoxnxN/nat-1.0' dh_auto_install install -m 755 nat /build/nat-aoxnxN/nat-1.0/debian/smb-nat/usr/bin/smb-nat make[1]: Leaving directory '/build/nat-aoxnxN/nat-1.0' dh_install -a dh_installdocs -a dh_installchangelogs -a dh_installman -a dh_perl -a dh_link -a dh_strip_nondeterminism -a dh_compress -a dh_fixperms -a dh_missing -a dh_dwz -a dh_strip -a dh_makeshlibs -a dh_shlibdeps -a dh_installdeb -a dh_gencontrol -a dh_md5sums -a dh_builddeb -a dpkg-deb: building package 'smb-nat-dbgsym' in '../smb-nat-dbgsym_1.0-6.1_amd64.deb'. dpkg-deb: building package 'smb-nat' in '../smb-nat_1.0-6.1_amd64.deb'. dpkg-genbuildinfo --build=any -O../nat_1.0-6.1_amd64.buildinfo dpkg-genchanges --build=any -O../nat_1.0-6.1_amd64.changes dpkg-genchanges: info: binary-only arch-specific upload (source code and arch-indep packages not included) dpkg-source --after-build . dpkg-buildpackage: info: binary-only upload (no source included) I: running special hook: sync-out /build/nat-aoxnxN /tmp/nat-1.0-6.1l_bshtc_ I: cleaning package lists and apt cache... I: removing tempdir /tmp/mmdebstrap.d08reeWUr0... I: success in 595.0489 seconds md5: smb-nat-dbgsym_1.0-6.1_amd64.deb: OK md5: smb-nat_1.0-6.1_amd64.deb: OK sha1: smb-nat-dbgsym_1.0-6.1_amd64.deb: OK sha1: smb-nat_1.0-6.1_amd64.deb: OK sha256: smb-nat-dbgsym_1.0-6.1_amd64.deb: OK sha256: smb-nat_1.0-6.1_amd64.deb: OK Checksums: OK