diff --git a/chntpw-140201-hexdump-pointer-type.patch b/chntpw-140201-hexdump-pointer-type.patch new file mode 100644 index 0000000..a8924bc --- /dev/null +++ b/chntpw-140201-hexdump-pointer-type.patch @@ -0,0 +1,21 @@ +diff -urN chntpw-140201.orig/libsam.c chntpw-140201/libsam.c +--- chntpw-140201.orig/libsam.c 2014-02-01 08:54:37.000000000 -0800 ++++ chntpw-140201/libsam.c 2024-08-03 15:31:41.817601486 -0700 +@@ -511,7 +511,7 @@ + + if (gverbose) printf("put_grp_members_sid: ajusted: mofs = %x, mlen = %x (%d)\n", mofs + 0x34 ,mlen,mlen); + +- if (gverbose) hexdump(&c->data, 0, c->len, 1); ++ if (gverbose) hexdump((char*)&c->data, 0, c->len, 1); + + /* Get total size of new SID data */ + +@@ -539,7 +539,7 @@ + cd->members_len = sidlen; /* Update member count in C struct */ + cd->grp_members = i; + +- if (gverbose) hexdump(&c->data, 0, c->len, 1); ++ if (gverbose) hexdump((char*)&c->data, 0, c->len, 1); + + if (!put_buf2val(hdesc, c, 0, g, 0, TPF_VK_EXACT)) { + fprintf(stderr,"put_grp_members_sid: could not write back group info in value %s\n",g); diff --git a/chntpw.spec b/chntpw.spec index 75e3e16..120ca06 100644 --- a/chntpw.spec +++ b/chntpw.spec @@ -1,9 +1,10 @@ Name: chntpw # Version is taken from HISTORY.txt Version: 1.00 -Release: 12.140201%{?dist} +Release: 20.140201%{?dist} Summary: Change passwords in Windows SAM files -License: GPLv2 +# Automatically converted from old format: GPLv2 - review is highly recommended. +License: GPL-2.0-only URL: http://pogostick.net/~pnh/ntpasswd/ Source0: http://pogostick.net/~pnh/ntpasswd/chntpw-source-140201.zip Source2: chntpw-README.Dist @@ -30,7 +31,10 @@ Patch6: chntpw-110511-detect-failure-to-write-key.patch Patch7: chntpw-110511-reged-no-deref-null.patch # Patch derived from Oleg Samarin (RHBZ#1645886) -Patch8: chntpw-140201-fix-bogus-errno-use.patch +Patch8: chntpw-140201-fix-bogus-errno-use.patch + +# Cast around new GCC error for mismatched pointer arguments +Patch9: chntpw-140201-hexdump-pointer-type.patch %description @@ -51,13 +55,14 @@ sed -e 's/\r$//' WinReg.txt > WinReg.txt.eol touch -c -r WinReg.txt WinReg.txt.eol mv WinReg.txt.eol WinReg.txt -%patch1 -p1 -%patch3 -p1 -%patch4 -p1 -%patch5 -p1 -%patch6 -p1 -%patch7 -p1 -%patch8 -p1 +%patch -P1 -p1 +%patch -P3 -p1 +%patch -P4 -p1 +%patch -P5 -p1 +%patch -P6 -p1 +%patch -P7 -p1 +%patch -P8 -p1 +%patch -P9 -p1 %build @@ -87,6 +92,30 @@ cp -p %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} \ %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 1.00-20.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 1.00-19.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Sat Aug 03 2024 Conrad Meyer - 1.00-18.140201 +- Add fix for rhbz# 2300591. + +* Mon Jul 29 2024 Miroslav Suchý - 1.00-17.140201 +- convert license to SPDX + +* Wed Jul 17 2024 Fedora Release Engineering - 1.00-16.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Tue Jan 23 2024 Fedora Release Engineering - 1.00-15.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.00-14.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 1.00-13.140201 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Wed Jan 18 2023 Fedora Release Engineering - 1.00-12.140201 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild