Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/c/chntpw/chntpw_140201-1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/chntpw-140201-1z_9dpea9/chntpw_140201-1_amd64.buildinfo Get source package info: chntpw=140201-1 Source URL: http://snapshot.notset.fr/mr/package/chntpw/140201-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.1 autopoint=0.21-4 autotools-dev=20180224.1+nmu1 base-files=12 base-passwd=3.5.52 bash=5.1-6 binutils=2.37.50.20220106-2 binutils-common=2.37.50.20220106-2 binutils-x86-64-linux-gnu=2.37.50.20220106-2 bsdextrautils=2.37.2-6 bsdutils=1:2.37.2-6 build-essential=12.9 bzip2=1.0.8-5 coreutils=8.32-4.1 cpp=4:11.2.0-2 cpp-11=11.2.0-14 dash=0.5.11+git20210903+057cd650a4ed-3 debconf=1.5.79 debhelper=13.6 debianutils=5.5-1 dh-autoreconf=20 dh-strip-nondeterminism=1.13.0-1 diffstat=1.64-1 diffutils=1:3.7-5 dpkg=1.21.1 dpkg-dev=1.21.1 dwz=0.14-1 ed=1.17-1 file=1:5.41-2 findutils=4.8.0-1 g++=4:11.2.0-2 g++-11=11.2.0-14 gcc=4:11.2.0-2 gcc-11=11.2.0-14 gcc-11-base=11.2.0-14 gettext=0.21-4 gettext-base=0.21-4 grep=3.7-1 groff-base=1.22.4-8 gzip=1.10-4 hostname=3.23 init-system-helpers=1.61 intltool-debian=0.35.0+20060710.5 libacl1=2.3.1-1 libarchive-zip-perl=1.68-1 libasan6=11.2.0-14 libatomic1=11.2.0-14 libattr1=1:2.5.1-1 libaudit-common=1:3.0.6-1 libaudit1=1:3.0.6-1+b1 libbinutils=2.37.50.20220106-2 libblkid1=2.37.2-6 libbz2-1.0=1.0.8-5 libc-bin=2.33-3 libc-dev-bin=2.33-3 libc6=2.33-3 libc6-dev=2.33-3 libcap-ng0=0.7.9-2.2+b1 libcap2=1:2.44-1 libcc1-0=11.2.0-14 libcom-err2=1.46.5-2 libcrypt-dev=1:4.4.27-1 libcrypt1=1:4.4.27-1 libctf-nobfd0=2.37.50.20220106-2 libctf0=2.37.50.20220106-2 libdb5.3=5.3.28+dfsg1-0.8 libdebconfclient0=0.261 libdebhelper-perl=13.6 libdpkg-perl=1.21.1 libelf1=0.186-1 libfile-stripnondeterminism-perl=1.13.0-1 libgcc-11-dev=11.2.0-14 libgcc-s1=11.2.0-14 libgcrypt20=1.9.4-5 libgcrypt20-dev=1.9.4-5 libgdbm-compat4=1.22-1 libgdbm6=1.22-1 libgmp10=2:6.2.1+dfsg-3 libgomp1=11.2.0-14 libgpg-error-dev=1.43-3 libgpg-error0=1.43-3 libgssapi-krb5-2=1.18.3-7 libicu67=67.1-7 libisl23=0.24-2 libitm1=11.2.0-14 libk5crypto3=1.18.3-7 libkeyutils1=1.6.1-2 libkrb5-3=1.18.3-7 libkrb5support0=1.18.3-7 liblsan0=11.2.0-14 liblz4-1=1.9.3-2 liblzma5=5.2.5-2 libmagic-mgc=1:5.41-2 libmagic1=1:5.41-2 libmount1=2.37.2-6 libmpc3=1.2.1-1 libmpfr6=4.1.0-3 libnsl-dev=1.3.0-2 libnsl2=1.3.0-2 libpam-modules=1.4.0-11 libpam-modules-bin=1.4.0-11 libpam-runtime=1.4.0-11 libpam0g=1.4.0-11 libpcre2-8-0=10.39-3 libpcre3=2:8.39-13 libperl5.32=5.32.1-6 libpipeline1=1.5.5-1 libquadmath0=11.2.0-14 libseccomp2=2.5.3-2 libselinux1=3.3-1+b1 libsigsegv2=2.13-1 libsmartcols1=2.37.2-6 libssl1.1=1.1.1m-1 libstdc++-11-dev=11.2.0-14 libstdc++6=11.2.0-14 libsub-override-perl=0.09-2 libsystemd0=250.3-1 libtinfo6=6.3-2 libtirpc-common=1.3.2-2 libtirpc-dev=1.3.2-2 libtirpc3=1.3.2-2 libtool=2.4.6-15 libtsan0=11.2.0-14 libubsan1=11.2.0-14 libuchardet0=0.0.7-1 libudev1=250.3-1 libunistring2=0.9.10-6 libuuid1=2.37.2-6 libxml2=2.9.12+dfsg-5+b1 libzstd1=1.4.8+dfsg-3 linux-libc-dev=5.15.15-1 login=1:4.8.1-2 lsb-base=11.1.0 m4=1.4.18-5 make=4.3-4.1 man-db=2.9.4-4 mawk=1.3.4.20200120-2 ncurses-base=6.3-2 ncurses-bin=6.3-2 patch=2.7.6-7 perl=5.32.1-6 perl-base=5.32.1-6 perl-modules-5.32=5.32.1-6 po-debconf=1.0.21+nmu1 quilt=0.66-2.1 rpcsvc-proto=1.4.2-4 sed=4.8-1 sensible-utils=0.0.17 sharutils=1:4.15.2-5 sysvinit-utils=3.01-1 tar=1.34+dfsg-1 util-linux=2.37.2-6 xz-utils=5.2.5-2 zlib1g=1:1.2.11.dfsg-2 --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/20220129T025638Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20220129T025638Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20220119T212311Z/ 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 chntpw=140201-1 && mkdir -p /build/chntpw-LpTu0I && dpkg-source --no-check -x /*.dsc /build/chntpw-LpTu0I/chntpw-140201 && chown -R builduser:builduser /build/chntpw-LpTu0I" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/chntpw-LpTu0I/chntpw-140201 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1642714549" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/chntpw-LpTu0I /tmp/chntpw-140201-1z_9dpea9 bookworm /dev/null deb http://snapshot.notset.fr/archive/debian/20220119T212311Z 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.lwNxsz504u 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.lwNxsz504u Reading package lists... Building dependency tree... util-linux is already the newest version (2.37.2-6). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 136 kB of archives. After this operation, 406 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20220119T212311Z unstable/main amd64 libfakeroot amd64 1.27-1 [48.5 kB] Get:2 http://snapshot.notset.fr/archive/debian/20220119T212311Z unstable/main amd64 fakeroot amd64 1.27-1 [87.2 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 136 kB in 0s (1015 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 ... 4681 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.27-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.27-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.27-1_amd64.deb ... Unpacking fakeroot (1.27-1) ... Setting up libfakeroot:amd64 (1.27-1) ... Setting up fakeroot (1.27-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.33-3) ... 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/20220129T025638Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20220129T025638Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20220119T212311Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.lwNxsz504u Get:1 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm InRelease [129 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20220119T212311Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main Sources [11.8 MB] Get:4 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main amd64 Packages [11.2 MB] Fetched 23.1 MB in 20s (1183 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.lwNxsz504u I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d chntpw=140201-1 && mkdir -p /build/chntpw-LpTu0I && dpkg-source --no-check -x /*.dsc /build/chntpw-LpTu0I/chntpw-140201 && chown -R builduser:builduser /build/chntpw-LpTu0I"' exec /tmp/mmdebstrap.lwNxsz504u Reading package lists... NOTICE: 'chntpw' packaging is maintained in the 'Git' version control system at: https://salsa.debian.org/debian/chntpw.git Please use: git clone https://salsa.debian.org/debian/chntpw.git to retrieve the latest (possibly unreleased) updates to the package. Need to get 481 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main chntpw 140201-1 (dsc) [1901 B] Get:2 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main chntpw 140201-1 (tar) [437 kB] Get:3 http://snapshot.notset.fr/archive/debian/20220129T025638Z bookworm/main chntpw 140201-1 (diff) [42.3 kB] Fetched 481 kB in 1s (784 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'chntpw_140201-1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting chntpw in /build/chntpw-LpTu0I/chntpw-140201 dpkg-source: info: unpacking chntpw_140201.orig.tar.xz dpkg-source: info: unpacking chntpw_140201-1.debian.tar.xz dpkg-source: info: using patch list from debian/patches/series dpkg-source: info: applying 01_port_to_gcrypt.patch dpkg-source: info: applying 04_get_abs_path dpkg-source: info: applying 06_correct_test_open_syscall dpkg-source: info: applying 07_detect_failure_to_write_key dpkg-source: info: applying 08_no_deref_null dpkg-source: info: applying 09_improve_robustness dpkg-source: info: applying 10_remove_static dpkg-source: info: applying 11_improve_documentation dpkg-source: info: applying 12_readonly_filesystem dpkg-source: info: applying 13_write_to_hive dpkg-source: info: applying 14_improve_description dpkg-source: info: applying 15_added_samunlock_binary I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/chntpw-LpTu0I/chntpw-140201 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="C.UTF-8" LC_COLLATE="C.UTF-8" SOURCE_DATE_EPOCH="1642714549" DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.lwNxsz504u dpkg-buildpackage: info: source package chntpw dpkg-buildpackage: info: source version 140201-1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Javier Fernández-Sanguino Peña 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/chntpw-LpTu0I/chntpw-140201' rm -f *.o chntpw cpnt reged samusrgrp sampasswd samunlock *~ make[1]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' dh_clean debian/rules build-arch dh build-arch dh_update_autotools_config -a dh_autoreconf -a dh_auto_configure -a debian/rules override_dh_auto_build make[1]: Entering directory '/build/chntpw-LpTu0I/chntpw-140201' dh_auto_build -- CFLAGS="-DUSELIBGCRYPT -Wall -O2" make -j10 "INSTALL=install --strip-program=true" "CFLAGS=-DUSELIBGCRYPT -Wall -O2" make[2]: Entering directory '/build/chntpw-LpTu0I/chntpw-140201' gcc -c -DUSELIBGCRYPT -Wall -O2 chntpw.c gcc -c -DUSELIBGCRYPT -Wall -O2 ntreg.c gcc -c -DUSELIBGCRYPT -Wall -O2 edlib.c gcc -c -DUSELIBGCRYPT -Wall -O2 libsam.c gcc -c -DUSELIBGCRYPT -Wall -O2 cpnt.c gcc -c -DUSELIBGCRYPT -Wall -O2 reged.c gcc -c -DUSELIBGCRYPT -Wall -O2 samusrgrp.c gcc -c -DUSELIBGCRYPT -Wall -O2 sampasswd.c gcc -c -DUSELIBGCRYPT -Wall -O2 samunlock.c libsam.c: In function ‘sam_put_grp_members_sid’: libsam.c:514:28: warning: passing argument 1 of ‘hexdump’ from incompatible pointer type [-Wincompatible-pointer-types] 514 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * In file included from libsam.c:47: ntreg.h:394:20: note: expected ‘char *’ but argument is of type ‘int *’ 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ libsam.c:531:56: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 4 has type ‘void *’ [-Wformat=] 531 | if (gverbose) printf(" copying : %d len %x, at %x\n",i,sarray[i].len, sidptr); | ~^ ~~~~~~ | | | | unsigned int void * | %p libsam.c:542:27: warning: passing argument 1 of ‘hexdump’ from incompatible pointer type [-Wincompatible-pointer-types] 542 | if (gverbose) hexdump(&c->data, 0, c->len, 1); | ^~~~~~~~ | | | int * In file included from libsam.c:47: ntreg.h:394:20: note: expected ‘char *’ but argument is of type ‘int *’ 394 | void hexdump(char *hbuf, int start, int stop, int ascii); | ~~~~~~^~~~ ntreg.c: In function ‘parse_nk’: ntreg.c:546:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 546 | printf("%04x type = 0x%02x %s\n", D_OFFS(type) ,key->type, | ~~~^ | | | unsigned int | %04lx ntreg.c:548:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 548 | printf("%04x timestamp skipped\n", D_OFFS(timestamp) ); | ~~~^ | | | unsigned int | %04lx ntreg.c:549:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 549 | printf("%04x parent key offset = 0x%0x\n", D_OFFS(ofs_parent) ,key->ofs_parent + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:550:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 550 | printf("%04x number of subkeys = %d\n", D_OFFS(no_subkeys),key->no_subkeys); | ~~~^ | | | unsigned int | %04lx ntreg.c:551:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 551 | printf("%04x lf-record offset = 0x%0x\n",D_OFFS(ofs_lf),key->ofs_lf + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:552:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 552 | printf("%04x number of values = %d\n", D_OFFS(no_values),key->no_values); | ~~~^ | | | unsigned int | %04lx ntreg.c:553:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 553 | printf("%04x val-list offset = 0x%0x\n",D_OFFS(ofs_vallist),key->ofs_vallist + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:554:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 554 | printf("%04x sk-record offset = 0x%0x\n",D_OFFS(ofs_sk),key->ofs_sk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:555:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 555 | printf("%04x classname offset = 0x%0x\n",D_OFFS(ofs_classnam),key->ofs_classnam + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:557:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 557 | printf("%04x dummy3 = 0x%0x (%d)\n",D_OFFS(dummy3),key->dummy3,key->dummy3); | ~~~^ | | | unsigned int | %04lx ntreg.c:558:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 558 | printf("%04x dummy4 = 0x%0x (%d)\n",D_OFFS(dummy4),key->dummy4,key->dummy4); | ~~~^ | | | unsigned int | %04lx ntreg.c:559:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 559 | printf("%04x dummy5 = 0x%0x (%d)\n",D_OFFS(dummy5),key->dummy5,key->dummy5); | ~~~^ | | | unsigned int | %04lx ntreg.c:560:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 560 | printf("%04x dummy6 = 0x%0x (%d)\n",D_OFFS(dummy6),key->dummy6,key->dummy6); | ~~~^ | | | unsigned int | %04lx ntreg.c:561:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 561 | printf("%04x dummy7 = 0x%0x (%d)\n",D_OFFS(dummy7),key->dummy7,key->dummy7); | ~~~^ | | | unsigned int | %04lx ntreg.c:563:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 563 | printf("%04x name length = %d\n", D_OFFS(len_name),key->len_name); | ~~~^ | | | unsigned int | %04lx ntreg.c:564:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 564 | printf("%04x classname length = %d\n", D_OFFS(len_classnam),key->len_classnam); | ~~~^ | | | unsigned int | %04lx ntreg.c:566:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 566 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_vk’: ntreg.c:584:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 584 | printf("%04x name length = %d (0x%0x)\n", D_OFFS(len_name), | ~~~^ | | | unsigned int | %04lx ntreg.c:586:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 586 | printf("%04x length of data = %d (0x%0x)\n", D_OFFS(len_data), | ~~~^ | | | unsigned int | %04lx ntreg.c:588:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 588 | printf("%04x data offset = 0x%0x\n",D_OFFS(ofs_data),key->ofs_data + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:589:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 589 | printf("%04x value type = 0x%0x %s\n", D_OFFS(val_type), key->val_type, | ~~~^ | | | unsigned int | %04lx ntreg.c:592:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 592 | printf("%04x flag = 0x%0x\n",D_OFFS(flag),key->flag); | ~~~^ | | | unsigned int | %04lx ntreg.c:593:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 593 | printf("%04x *unused?* = 0x%0x\n",D_OFFS(dummy1),key->dummy1); | ~~~^ | | | unsigned int | %04lx ntreg.c:595:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 595 | printf("%04x Key name: <",D_OFFS(keyname) ); | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_sk’: ntreg.c:613:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 613 | printf("%04x *unused?* = %d\n" , D_OFFS(dummy1), key->dummy1 ); | ~~~^ | | | unsigned int | %04lx ntreg.c:614:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 614 | printf("%04x Offset to prev sk = 0x%0x\n", D_OFFS(ofs_prevsk), key->ofs_prevsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:615:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 615 | printf("%04x Offset to next sk = 0x%0x\n", D_OFFS(ofs_nextsk), key->ofs_nextsk + 0x1000); | ~~~^ | | | unsigned int | %04lx ntreg.c:616:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 616 | printf("%04x Usage counter = %d (0x%0x)\n", D_OFFS(no_usage), | ~~~^ | | | unsigned int | %04lx ntreg.c:618:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 618 | printf("%04x Security data len = %d (0x%0x)\n", D_OFFS(len_sk), | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_lf’: samunlock.c: In function ‘main’: samunlock.c:246:14: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] 246 | return(ret | wret); | ~~~~~^~~~~~~ ntreg.c:637:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 637 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:640:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 640 | printf("%04x %3d Offset: 0x%0x - <%c%c%c%c>\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_lh’: ntreg.c:665:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 665 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:668:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 668 | printf("%04x %3d Offset: 0x%0x - \n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_li’: ntreg.c:692:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 692 | printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); | ~~~^ | | | unsigned int | %04lx ntreg.c:695:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 695 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_ri’: ntreg.c:717:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 717 | printf("%04x number of subindices = %d\n", D_OFFS(no_lis), key->no_lis ); | ~~~^ | | | unsigned int | %04lx ntreg.c:720:16: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 720 | printf("%04x %3d Offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘parse_db’: ntreg.c:739:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 739 | printf("%04x number of parts = %d\n", D_OFFS(no_part), key->no_part ); | ~~~^ | | | unsigned int | %04lx ntreg.c:741:14: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long int’ [-Wformat=] 741 | printf("%04x Data list at offset: 0x%0x\n", | ~~~^ | | | unsigned int | %04lx ntreg.c: In function ‘alloc_val_data’: ntreg.c:2155:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ ntreg.c:2155:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 2155 | datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; | ^ sampasswd.c: In function ‘main’: sampasswd.c:253:14: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized] 253 | return(ret | wret); | ~~~~~^~~~~~~ reged.c: In function ‘main’: reged.c:218:30: warning: ‘ch’ may be used uninitialized in this function [-Wmaybe-uninitialized] 218 | if (logchange) fprintf(ch,"%s ",hive[il]->filename); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function ‘openHive’: ntreg.c:4260:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] 4260 | "file is too small; got %d bytes while expecting %d or more\n", | ~^ | | | int | %ld 4261 | rt, sizeof (*hdesc)); | ~~~~~~~~~~~~~~~ | | | long unsigned int chntpw.c: In function ‘handle_syskey’: chntpw.c:872:31: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations] 872 | ff->syskeyflags1[i] = 0; | ~~~~~~~~~~~~~~~~~~~~^~~ chntpw.c:871:23: note: within this loop 871 | for (i = 0; i < 0x3b; i++) { | ~~^~~~~~ gcc -DUSELIBGCRYPT -Wall -O2 -o cpnt cpnt.o -L/usr/lib/x86_64-linux-gnu -lgcrypt ntreg.c: In function ‘free_block’: ntreg.c:1236:14: warning: ‘prev’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1236 | prevsz = get_int(hdesc->buffer+prev); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function ‘trav_path’: ntreg.c:1734:58: warning: ‘adjust’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1734 | return(trav_path(hdesc, newnkofs, path+plen+adjust, type)); | ^ ntreg.c:1707:43: warning: ‘partptr’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1707 | partw = string_prog2regw(part, partptr-part, &partw_len); | ~~~~~~~^~~~~ ntreg.c:1659:36: warning: ‘plen’ may be used uninitialized in this function [-Wmaybe-uninitialized] 1659 | if ((type & TPF_VK_ABS) || (!path[plen] && (type & TPF_VK) && key->no_values) ) { | ^ ntreg.c: In function ‘del_key’: ntreg.c:2893:28: warning: ‘delnk’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2893 | free_block(hdesc, delnk->ofs_classnam + 0x1000); | ~~~~~^~~~~~~~~~~~~~ ntreg.c:2856:70: warning: ‘delnkofs’ may be used uninitialized in this function [-Wmaybe-uninitialized] 2856 | if (delnkofs) delnk = (struct nk_key *)(delnkofs + hdesc->buffer + 0x1004); | ^ ntreg.c: In function ‘import_reg’: ntreg.c:3946:18: warning: ‘valstr’ may be used uninitialized in this function [-Wmaybe-uninitialized] 3946 | valstr = realloc(valstr, strlen(valstr) + l + 3); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ntreg.c: In function ‘openHive’: ntreg.c:4356:29: warning: ‘p’ may be used uninitialized in this function [-Wmaybe-uninitialized] 4356 | hdesc->lastbin = pofs - p->ofs_next; /* Compensate for loop that added at end above */ | ~^~~~~~~~~~ gcc -DUSELIBGCRYPT -Wall -O2 -o chntpw chntpw.o ntreg.o edlib.o libsam.o -L/usr/lib/x86_64-linux-gnu -lgcrypt gcc -DUSELIBGCRYPT -Wall -O2 -o reged reged.o ntreg.o edlib.o gcc -DUSELIBGCRYPT -Wall -O2 -o samusrgrp samusrgrp.o ntreg.o libsam.o gcc -DUSELIBGCRYPT -Wall -O2 -o sampasswd sampasswd.o ntreg.o libsam.o gcc -DUSELIBGCRYPT -Wall -O2 -o samunlock samunlock.o ntreg.o libsam.o make[2]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' make[1]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' 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_auto_install --destdir=debian/chntpw/ -a dh_install -a debian/rules override_dh_installdocs make[1]: Entering directory '/build/chntpw-LpTu0I/chntpw-140201' dh_installdocs # Do not install the documentation until available [ ! -f faq.uu ] || for i in *.uu; do uudecode $i; done [ ! -f faq.html ] || dh_installdocs faq.html bootdisk.html *.gif make[1]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' debian/rules override_dh_installchangelogs make[1]: Entering directory '/build/chntpw-LpTu0I/chntpw-140201' dh_installchangelogs HISTORY.txt make[1]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' debian/rules override_dh_installman make[1]: Entering directory '/build/chntpw-LpTu0I/chntpw-140201' dh_installman debian/chntpw.8 debian/samusrgrp.8 debian/reged.8 debian/sampasswd.8 debian/samunlock.8 make[1]: Leaving directory '/build/chntpw-LpTu0I/chntpw-140201' dh_perl -a dh_link -a dh_strip_nondeterminism -a dh_compress -a dh_fixperms -a dh_missing -a dh_dwz -a dwz: debian/chntpw/usr/sbin/chntpw: .debug_info section not present dwz: debian/chntpw/usr/sbin/reged: .debug_info section not present dwz: debian/chntpw/usr/sbin/sampasswd: .debug_info section not present dwz: debian/chntpw/usr/sbin/samunlock: .debug_info section not present dwz: debian/chntpw/usr/sbin/samusrgrp: .debug_info section not present dwz: Too few files for multifile optimization dh_dwz: warning: No dwz multifile created, but not explicitly requested either so ignoring it. dh_dwz: warning: Common issues include no debug information at all (missing -g) and dh_dwz: warning: compressed debug information (#931891). 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 'chntpw-dbgsym' in '../chntpw-dbgsym_140201-1_amd64.deb'. dpkg-deb: building package 'chntpw' in '../chntpw_140201-1_amd64.deb'. dpkg-genbuildinfo --build=any -O../chntpw_140201-1_amd64.buildinfo dpkg-genchanges --build=any -O../chntpw_140201-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/chntpw-LpTu0I /tmp/chntpw-140201-1z_9dpea9 I: cleaning package lists and apt cache... I: removing tempdir /tmp/mmdebstrap.lwNxsz504u... I: success in 464.7723 seconds md5: chntpw-dbgsym_140201-1_amd64.deb: OK md5: chntpw_140201-1_amd64.deb: OK sha1: chntpw-dbgsym_140201-1_amd64.deb: OK sha1: chntpw_140201-1_amd64.deb: OK sha256: chntpw-dbgsym_140201-1_amd64.deb: OK sha256: chntpw_140201-1_amd64.deb: OK Checksums: OK