Input buildinfo: https://buildinfos.debian.net/buildinfo-pool/c/chntpw/chntpw_1.0-1.1_amd64.buildinfo Use metasnap for getting required timestamps New buildinfo file: /tmp/chntpw-1.0-1.1tlydu803/chntpw_1.0-1.1_amd64.buildinfo Get source package info: chntpw=1.0-1.1 Source URL: http://snapshot.notset.fr/mr/package/chntpw/1.0-1.1/srcfiles?fileinfo=1 env -i PATH=/usr/sbin:/usr/bin:/sbin:/bin TMPDIR=/tmp mmdebstrap --arch=amd64 --include=autoconf=2.69-11 automake=1:1.16.1-2 autopoint=0.19.8.1-8 autotools-dev=20180224.1 base-files=10.1 base-passwd=3.5.45 bash=4.4.18-3.1 binutils=2.31.1-7 binutils-common=2.31.1-7 binutils-x86-64-linux-gnu=2.31.1-7 bsdmainutils=11.1.2+b1 bsdutils=1:2.32.1-0.1 build-essential=12.5 bzip2=1.0.6-9 coreutils=8.30-1 cpp=4:8.2.0-1 cpp-8=8.2.0-8 dash=0.5.10.2-1 debconf=1.5.69 debhelper=11.4.1 debianutils=4.8.6 dh-autoreconf=19 dh-strip-nondeterminism=0.043-2 diffstat=1.61-1+b1 diffutils=1:3.6-1 dpkg=1.19.2 dpkg-dev=1.19.2 dwz=0.12-2 fdisk=2.32.1-0.1 file=1:5.34-2 findutils=4.6.0+git+20181018-1 g++=4:8.2.0-1 g++-8=8.2.0-8 gcc=4:8.2.0-1 gcc-8=8.2.0-8 gcc-8-base=8.2.0-8 gettext=0.19.8.1-8 gettext-base=0.19.8.1-8 grep=3.1-2 groff-base=1.22.3-10 gzip=1.9-2.1 hostname=3.21 init-system-helpers=1.55 intltool-debian=0.35.0+20060710.4 libacl1=2.2.52-3+b1 libarchive-zip-perl=1.64-1 libasan5=8.2.0-8 libatomic1=8.2.0-8 libattr1=1:2.4.47-2+b2 libaudit-common=1:2.8.4-2 libaudit1=1:2.8.4-2 libbinutils=2.31.1-7 libblkid1=2.32.1-0.1 libbsd0=0.9.1-1 libbz2-1.0=1.0.6-9 libc-bin=2.27-6 libc-dev-bin=2.27-6 libc6=2.27-6 libc6-dev=2.27-6 libcap-ng0=0.7.9-1 libcc1-0=8.2.0-8 libcroco3=0.6.12-2 libdb5.3=5.3.28+dfsg1-0.2 libdebconfclient0=0.245 libdpkg-perl=1.19.2 libelf1=0.170-0.5 libfdisk1=2.32.1-0.1 libffi6=3.2.1-8 libfile-stripnondeterminism-perl=0.043-2 libfreetype6=2.8.1-2 libgcc-8-dev=8.2.0-8 libgcc1=1:8.2.0-8 libgcrypt20=1.8.3-1 libgcrypt20-dev=1.8.3-1 libgdbm-compat4=1.18-2 libgdbm6=1.18-2 libglib2.0-0=2.58.1-2 libgmp10=2:6.1.2+dfsg-3 libgomp1=8.2.0-8 libgpg-error-dev=1.32-3 libgpg-error0=1.32-3 libgraphite2-3=1.3.12-1 libharfbuzz0b=1.9.0-1 libicu-le-hb0=1.0.3+git161113-5 libicu60=60.2-6 libisl19=0.20-2 libitm1=8.2.0-8 liblsan0=8.2.0-8 liblz4-1=1.8.2-1 liblzma5=5.2.2-1.3 libmagic-mgc=1:5.34-2 libmagic1=1:5.34-2 libmount1=2.32.1-0.1 libmpc3=1.1.0-1 libmpfr6=4.0.1-1 libmpx2=8.2.0-8 libncurses6=6.1+20181013-1 libncursesw6=6.1+20181013-1 libpam-modules=1.1.8-3.8 libpam-modules-bin=1.1.8-3.8 libpam-runtime=1.1.8-3.8 libpam0g=1.1.8-3.8 libpcre3=2:8.39-11 libperl5.26=5.26.2-7+b1 libpipeline1=1.5.0-1 libpng16-16=1.6.34-2 libquadmath0=8.2.0-8 libseccomp2=2.3.3-3 libselinux1=2.8-1+b1 libsigsegv2=2.12-2 libsmartcols1=2.32.1-0.1 libstdc++-8-dev=8.2.0-8 libstdc++6=8.2.0-8 libsystemd0=239-10 libtinfo6=6.1+20181013-1 libtool=2.4.6-6 libtsan0=8.2.0-8 libubsan1=8.2.0-8 libudev1=239-10 libunistring2=0.9.10-1 libuuid1=2.32.1-0.1 libxml2=2.9.4+dfsg1-7+b1 linux-libc-dev=4.18.10-2 login=1:4.5-1.1 m4=1.4.18-1 make=4.2.1-1.2 man-db=2.8.4-2+b1 mawk=1.3.3-17+b3 ncurses-base=6.1+20181013-1 ncurses-bin=6.1+20181013-1 patch=2.7.6-3 perl=5.26.2-7+b1 perl-base=5.26.2-7+b1 perl-modules-5.26=5.26.2-7 po-debconf=1.0.20 quilt=0.65-2 sed=4.5-2 sharutils=1:4.15.2-3 sysvinit-utils=2.88dsf-59.11 tar=1.30+dfsg-2 util-linux=2.32.1-0.1 xz-utils=5.2.2-1.3 zlib1g=1:1.2.11.dfsg-1 --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/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20181026T220636Z/ 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=1.0-1.1 && mkdir -p /build/chntpw-cISrCy && dpkg-source --no-check -x /*.dsc /build/chntpw-cISrCy/chntpw-1.0 && chown -R builduser:builduser /build/chntpw-cISrCy" --customize-hook=chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/chntpw-cISrCy/chntpw-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="POSIX" SOURCE_DATE_EPOCH="1540624198" dpkg-buildpackage -uc -a amd64 --build=any" --customize-hook=sync-out /build/chntpw-cISrCy /tmp/chntpw-1.0-1.1tlydu803 buster /dev/null deb http://snapshot.notset.fr/archive/debian/20181026T220636Z unstable main I: automatically chosen mode: root I: chroot architecture amd64 is equal to the host's architecture I: automatically chosen format: tar I: using /tmp/mmdebstrap.OB65zxoHP5 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.OB65zxoHP5 Reading package lists... Building dependency tree... util-linux is already the newest version (2.32.1-0.1). The following NEW packages will be installed: fakeroot libfakeroot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 132 kB of archives. After this operation, 373 kB of additional disk space will be used. Get:1 http://snapshot.notset.fr/archive/debian/20181026T220636Z unstable/main amd64 libfakeroot amd64 1.23-1 [45.9 kB] Get:2 http://snapshot.notset.fr/archive/debian/20181026T220636Z unstable/main amd64 fakeroot amd64 1.23-1 [85.8 kB] debconf: delaying package configuration, since apt-utils is not installed Fetched 132 kB in 0s (978 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 ... 4322 files and directories currently installed.) Preparing to unpack .../libfakeroot_1.23-1_amd64.deb ... Unpacking libfakeroot:amd64 (1.23-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.23-1_amd64.deb ... Unpacking fakeroot (1.23-1) ... Processing triggers for libc-bin (2.27-6) ... Setting up libfakeroot:amd64 (1.23-1) ... Setting up fakeroot (1.23-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode Processing triggers for libc-bin (2.27-6) ... 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/20210814T212851Z/ bookworm main deb-src http://snapshot.notset.fr/archive/debian/20210814T212851Z/ bookworm main deb http://snapshot.notset.fr/archive/debian/20181026T220636Z/ unstable main' >> /etc/apt/sources.list && apt-get update"' exec /tmp/mmdebstrap.OB65zxoHP5 Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm InRelease [81.6 kB] Hit:2 http://snapshot.notset.fr/archive/debian/20181026T220636Z unstable InRelease Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Ign:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources Ign:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main Sources [11.4 MB] Get:4 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main amd64 Packages [11.1 MB] Fetched 22.6 MB in 20s (1114 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.OB65zxoHP5 I: running --customize-hook in shell: sh -c 'chroot "$1" env sh -c "apt-get source --only-source -d chntpw=1.0-1.1 && mkdir -p /build/chntpw-cISrCy && dpkg-source --no-check -x /*.dsc /build/chntpw-cISrCy/chntpw-1.0 && chown -R builduser:builduser /build/chntpw-cISrCy"' exec /tmp/mmdebstrap.OB65zxoHP5 Reading package lists... Need to get 194 kB of source archives. Get:1 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main chntpw 1.0-1.1 (dsc) [1750 B] Get:2 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main chntpw 1.0-1.1 (tar) [149 kB] Get:3 http://snapshot.notset.fr/archive/debian/20210814T212851Z bookworm/main chntpw 1.0-1.1 (diff) [43.4 kB] Fetched 194 kB in 0s (1273 kB/s) Download complete and in download only mode W: Download is performed unsandboxed as root as file 'chntpw_1.0-1.1.dsc' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied) dpkg-source: info: extracting chntpw in /build/chntpw-cISrCy/chntpw-1.0 dpkg-source: info: unpacking chntpw_1.0.orig.tar.gz dpkg-source: info: applying chntpw_1.0-1.1.diff.gz dpkg-source: info: upstream files that have been modified: /build/chntpw-cISrCy/chntpw-1.0/Makefile I: running --customize-hook in shell: sh -c 'chroot "$1" env --unset=TMPDIR runuser builduser -c "cd /build/chntpw-cISrCy/chntpw-1.0 && env DEB_BUILD_OPTIONS="parallel=4" LC_ALL="POSIX" SOURCE_DATE_EPOCH="1540624198" dpkg-buildpackage -uc -a amd64 --build=any"' exec /tmp/mmdebstrap.OB65zxoHP5 dpkg-buildpackage: info: source package chntpw dpkg-buildpackage: info: source version 1.0-1.1 dpkg-buildpackage: info: source distribution unstable dpkg-buildpackage: info: source changed by Andreas Metzler dpkg-source --before-build . dpkg-buildpackage: info: host architecture amd64 fakeroot debian/rules clean QUILT_PATCHES=debian/patches \ quilt --quiltrc /dev/null pop -a -R || test $? = 2 No patch removed rm -rf .pc debian/stamp-patched dh_testdir dh_testroot [ ! -f Makefile ] || /usr/bin/make clean make[1]: Entering directory '/build/chntpw-cISrCy/chntpw-1.0' rm -f *.o chntpw chntpw.static cpnt reged reged.static samusrgrp samusrgrp.static sampasswd sampasswd.static *~ make[1]: Leaving directory '/build/chntpw-cISrCy/chntpw-1.0' rm -f *.gif rm -f build-stamp dh_clean dh_clean: Compatibility levels before 9 are deprecated (level 5 in use) debian/rules build-arch QUILT_PATCHES=debian/patches \ quilt --quiltrc /dev/null push -a || test $? = 2 Applying patch 01_port_to_gcrypt.patch patching file chntpw.c Applying patch 04_get_abs_path patching file ntreg.c Applying patch 06_correct_test_open_syscall patching file ntreg.c Applying patch 07_detect_failure_to_write_key patching file ntreg.c Applying patch 08_no_deref_null patching file reged.c Applying patch 09_improve_robustness patching file ntreg.c Applying patch 10_remove_static patching file Makefile Applying patch 11_improve_documentation patching file MANUAL.txt patching file README.txt Now at patch 11_improve_documentation touch debian/stamp-patched dh_testdir /usr/bin/make CFLAGS="-DUSELIBGCRYPT -Wall -O2" make[1]: Entering directory '/build/chntpw-cISrCy/chntpw-1.0' gcc -c -DUSELIBGCRYPT -Wall -O2 chntpw.c chntpw.c: In function 'handle_syskey': chntpw.c:872:24: warning: iteration 11 invokes undefined behavior [-Waggressive-loop-optimizations] ff->syskeyflags1[i] = 0; ~~~~~~~~~~~~~~~~~~~~^~~ chntpw.c:871:2: note: within this loop for (i = 0; i < 0x3b; i++) { ^~~ gcc -c -DUSELIBGCRYPT -Wall -O2 ntreg.c 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=] printf("%04x type = 0x%02x %s\n", D_OFFS(type) ,key->type, ~~~^ %04lx ntreg.c:548:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x timestamp skipped\n", D_OFFS(timestamp) ); ~~~^ %04lx ntreg.c:549:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x parent key offset = 0x%0x\n", D_OFFS(ofs_parent) ,key->ofs_parent + 0x1000); ~~~^ %04lx ntreg.c:550:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x number of subkeys = %d\n", D_OFFS(no_subkeys),key->no_subkeys); ~~~^ %04lx ntreg.c:551:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x lf-record offset = 0x%0x\n",D_OFFS(ofs_lf),key->ofs_lf + 0x1000); ~~~^ %04lx ntreg.c:552:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x number of values = %d\n", D_OFFS(no_values),key->no_values); ~~~^ %04lx ntreg.c:553:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x val-list offset = 0x%0x\n",D_OFFS(ofs_vallist),key->ofs_vallist + 0x1000); ~~~^ %04lx ntreg.c:554:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x sk-record offset = 0x%0x\n",D_OFFS(ofs_sk),key->ofs_sk + 0x1000); ~~~^ %04lx ntreg.c:555:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x classname offset = 0x%0x\n",D_OFFS(ofs_classnam),key->ofs_classnam + 0x1000); ~~~^ %04lx ntreg.c:557:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x dummy3 = 0x%0x (%d)\n",D_OFFS(dummy3),key->dummy3,key->dummy3); ~~~^ %04lx ntreg.c:558:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x dummy4 = 0x%0x (%d)\n",D_OFFS(dummy4),key->dummy4,key->dummy4); ~~~^ %04lx ntreg.c:559:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x dummy5 = 0x%0x (%d)\n",D_OFFS(dummy5),key->dummy5,key->dummy5); ~~~^ %04lx ntreg.c:560:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x dummy6 = 0x%0x (%d)\n",D_OFFS(dummy6),key->dummy6,key->dummy6); ~~~^ %04lx ntreg.c:561:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x dummy7 = 0x%0x (%d)\n",D_OFFS(dummy7),key->dummy7,key->dummy7); ~~~^ %04lx ntreg.c:563:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x name length = %d\n", D_OFFS(len_name),key->len_name); ~~~^ %04lx ntreg.c:564:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x classname length = %d\n", D_OFFS(len_classnam),key->len_classnam); ~~~^ %04lx ntreg.c:566:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Key name: <",D_OFFS(keyname) ); ~~~^ %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=] printf("%04x name length = %d (0x%0x)\n", D_OFFS(len_name), ~~~^ %04lx ntreg.c:586:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x length of data = %d (0x%0x)\n", D_OFFS(len_data), ~~~^ %04lx ntreg.c:588:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x data offset = 0x%0x\n",D_OFFS(ofs_data),key->ofs_data + 0x1000); ~~~^ %04lx ntreg.c:589:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x value type = 0x%0x %s\n", D_OFFS(val_type), key->val_type, ~~~^ %04lx ntreg.c:592:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x flag = 0x%0x\n",D_OFFS(flag),key->flag); ~~~^ %04lx ntreg.c:593:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x *unused?* = 0x%0x\n",D_OFFS(dummy1),key->dummy1); ~~~^ %04lx ntreg.c:595:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Key name: <",D_OFFS(keyname) ); ~~~^ %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=] printf("%04x *unused?* = %d\n" , D_OFFS(dummy1), key->dummy1 ); ~~~^ %04lx ntreg.c:614:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Offset to prev sk = 0x%0x\n", D_OFFS(ofs_prevsk), key->ofs_prevsk + 0x1000); ~~~^ %04lx ntreg.c:615:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Offset to next sk = 0x%0x\n", D_OFFS(ofs_nextsk), key->ofs_nextsk + 0x1000); ~~~^ %04lx ntreg.c:616:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Usage counter = %d (0x%0x)\n", D_OFFS(no_usage), ~~~^ %04lx ntreg.c:618:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Security data len = %d (0x%0x)\n", D_OFFS(len_sk), ~~~^ %04lx ntreg.c: In function 'parse_lf': ntreg.c:637:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); ~~~^ %04lx ntreg.c:640:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x %3d Offset: 0x%0x - <%c%c%c%c>\n", ~~~^ %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=] printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); ~~~^ %04lx ntreg.c:668:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x %3d Offset: 0x%0x - \n", ~~~^ %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=] printf("%04x number of keys = %d\n", D_OFFS(no_keys), key->no_keys ); ~~~^ %04lx ntreg.c:695:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x %3d Offset: 0x%0x\n", ~~~^ %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=] printf("%04x number of subindices = %d\n", D_OFFS(no_lis), key->no_lis ); ~~~^ %04lx ntreg.c:720:16: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x %3d Offset: 0x%0x\n", ~~~^ %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=] printf("%04x number of parts = %d\n", D_OFFS(no_part), key->no_part ); ~~~^ %04lx ntreg.c:741:14: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long int' [-Wformat=] printf("%04x Data list at offset: 0x%0x\n", ~~~^ %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] 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] datablk = vkofs + (int32_t)&(vkkey->ofs_data) - (int32_t)vkkey; ^ ntreg.c: In function 'openHive': ntreg.c:4260:56: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] "file is too small; got %d bytes while expecting %d or more\n", ~^ %ld r, sizeof (*hdesc)); ~~~~~~~~~~~~~~~ ntreg.c: In function 'free_block': ntreg.c:1176:24: warning: 'prev' may be used uninitialized in this function [-Wmaybe-uninitialized] int pofs,vofs,seglen,prev,next,nextsz,prevsz,size; ^~~~ ntreg.c: In function 'del_key': ntreg.c:2893:28: warning: 'delnk' may be used uninitialized in this function [-Wmaybe-uninitialized] free_block(hdesc, delnk->ofs_classnam + 0x1000); ~~~~~^~~~~~~~~~~~~~ ntreg.c:2856:70: warning: 'delnkofs' may be used uninitialized in this function [-Wmaybe-uninitialized] if (delnkofs) delnk = (struct nk_key *)(delnkofs + hdesc->buffer + 0x1004); ^ ntreg.c: In function 'trav_path': ntreg.c:1734:51: warning: 'adjust' may be used uninitialized in this function [-Wmaybe-uninitialized] return(trav_path(hdesc, newnkofs, path+plen+adjust, type)); ^ ntreg.c:1707:43: warning: 'partptr' may be used uninitialized in this function [-Wmaybe-uninitialized] partw = string_prog2regw(part, partptr-part, &partw_len); ~~~~~~~^~~~~ ntreg.c:1659:36: warning: 'plen' may be used uninitialized in this function [-Wmaybe-uninitialized] if ((type & TPF_VK_ABS) || (!path[plen] && (type & TPF_VK) && key->no_values) ) { ^ ntreg.c: In function 'import_reg': ntreg.c:3946:11: warning: 'valstr' may be used uninitialized in this function [-Wmaybe-uninitialized] 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] hdesc->lastbin = pofs - p->ofs_next; /* Compensate for loop that added at end above */ ~^~~~~~~~~~ gcc -c -DUSELIBGCRYPT -Wall -O2 edlib.c gcc -c -DUSELIBGCRYPT -Wall -O2 libsam.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] if (gverbose) hexdump(&c->data, 0, c->len, 1); ^~~~~~~~ In file included from libsam.c:47: ntreg.h:394:20: note: expected 'char *' but argument is of type 'int *' 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=] if (gverbose) printf(" copying : %d len %x, at %x\n",i,sarray[i].len, sidptr); ~^ ~~~~~~ %p libsam.c:542:27: warning: passing argument 1 of 'hexdump' from incompatible pointer type [-Wincompatible-pointer-types] if (gverbose) hexdump(&c->data, 0, c->len, 1); ^~~~~~~~ In file included from libsam.c:47: ntreg.h:394:20: note: expected 'char *' but argument is of type 'int *' void hexdump(char *hbuf, int start, int stop, int ascii); ~~~~~~^~~~ gcc -DUSELIBGCRYPT -Wall -O2 -o chntpw chntpw.o ntreg.o edlib.o libsam.o -lgcrypt gcc -c -DUSELIBGCRYPT -Wall -O2 cpnt.c gcc -DUSELIBGCRYPT -Wall -O2 -o cpnt cpnt.o -lgcrypt gcc -c -DUSELIBGCRYPT -Wall -O2 reged.c reged.c: In function 'main': reged.c:225:4: warning: 'ch' may be used uninitialized in this function [-Wmaybe-uninitialized] fclose(ch); ^~~~~~~~~~ gcc -DUSELIBGCRYPT -Wall -O2 -o reged reged.o ntreg.o edlib.o gcc -c -DUSELIBGCRYPT -Wall -O2 samusrgrp.c gcc -DUSELIBGCRYPT -Wall -O2 -o samusrgrp samusrgrp.o ntreg.o libsam.o gcc -c -DUSELIBGCRYPT -Wall -O2 sampasswd.c sampasswd.c: In function 'main': sampasswd.c:141:7: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized] int ret, wret, il; ^~~ gcc -DUSELIBGCRYPT -Wall -O2 -o sampasswd sampasswd.o ntreg.o libsam.o make[1]: Leaving directory '/build/chntpw-cISrCy/chntpw-1.0' touch build-stamp fakeroot debian/rules binary-arch dh_testdir dh_testroot dh_prep dh_installdirs dh_installdirs: Compatibility levels before 9 are deprecated (level 5 in use) install -m 755 chntpw /build/chntpw-cISrCy/chntpw-1.0/debian/chntpw/usr/sbin/ install -m 755 reged /build/chntpw-cISrCy/chntpw-1.0/debian/chntpw/usr/sbin/ install -m 755 sampasswd /build/chntpw-cISrCy/chntpw-1.0/debian/chntpw/usr/sbin/ install -m 755 samusrgrp /build/chntpw-cISrCy/chntpw-1.0/debian/chntpw/usr/sbin/ dh_testdir dh_testroot # 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 dh_installdocs dh_installdocs: Compatibility levels before 9 are deprecated (level 5 in use) dh_installexamples dh_installexamples: Compatibility levels before 9 are deprecated (level 5 in use) dh_installman debian/chntpw.8 debian/samusrgrp.8 debian/reged.8 debian/sampasswd.8 dh_installman: Compatibility levels before 9 are deprecated (level 5 in use) dh_installchangelogs HISTORY.txt dh_link dh_strip dh_strip: Compatibility levels before 9 are deprecated (level 5 in use) dh_compress dh_compress: Compatibility levels before 9 are deprecated (level 5 in use) dh_fixperms dh_installdeb dh_installdeb: Compatibility levels before 9 are deprecated (level 5 in use) dh_shlibdeps dh_shlibdeps: Compatibility levels before 9 are deprecated (level 5 in use) dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/chntpw/usr/sbin/chntpw was not linked against libgcrypt.so.20 (it uses none of the library's symbols) dh_gencontrol dh_md5sums dh_builddeb dpkg-deb: building package 'chntpw' in '../chntpw_1.0-1.1_amd64.deb'. dpkg-deb: building package 'chntpw-dbgsym' in '../chntpw-dbgsym_1.0-1.1_amd64.deb'. dpkg-genbuildinfo --build=any dpkg-genchanges --build=any >../chntpw_1.0-1.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-cISrCy /tmp/chntpw-1.0-1.1tlydu803 I: cleaning package lists and apt cache... I: creating tarball... I: done I: removing tempdir /tmp/mmdebstrap.OB65zxoHP5... I: success in 319.6763 seconds md5: chntpw-dbgsym_1.0-1.1_amd64.deb: OK md5: chntpw_1.0-1.1_amd64.deb: OK sha1: chntpw-dbgsym_1.0-1.1_amd64.deb: OK sha1: chntpw_1.0-1.1_amd64.deb: OK sha256: chntpw-dbgsym_1.0-1.1_amd64.deb: OK sha256: chntpw_1.0-1.1_amd64.deb: OK Checksums: OK