diff --git a/shadow-4.15.1-useradd-fix-write-full-return.patch b/shadow-4.15.1-useradd-fix-write-full-return.patch index 6f66333..64e2ef8 100644 --- a/shadow-4.15.1-useradd-fix-write-full-return.patch +++ b/shadow-4.15.1-useradd-fix-write-full-return.patch @@ -25,7 +25,7 @@ index 02c500d0..d64fd892 100644 } if ( (lseek (fd, offset_uid, SEEK_SET) != offset_uid) - || (write_full (fd, &ll, sizeof (ll)) != (ssize_t) sizeof (ll)) -+ || (write_full (fd, &ll, sizeof (ll)) != -1) ++ || (write_full (fd, &ll, sizeof (ll)) == -1) || (fsync (fd) != 0)) { fprintf (stderr, _("%s: failed to reset the lastlog entry of UID %lu: %s\n"), diff --git a/shadow-utils.spec b/shadow-utils.spec index fe1e791..06717e1 100644 --- a/shadow-utils.spec +++ b/shadow-utils.spec @@ -1,7 +1,7 @@ Summary: Utilities for managing accounts and shadow password files Name: shadow-utils Version: 4.15.1 -Release: 11%{?dist} +Release: 12%{?dist} Epoch: 2 License: BSD-3-Clause AND GPL-2.0-or-later URL: https://github.com/shadow-maint/shadow @@ -298,7 +298,7 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libsubid.a %{_libdir}/libsubid.so %changelog -* Mon Sep 30 2024 Iker Pedrosa - 2:4.15.1-11 +* Thu Oct 10 2024 Iker Pedrosa - 2:4.15.1-12 - useradd: fix write_full() return value. Resolves: #2313559 * Wed Sep 18 2024 Iker Pedrosa - 2:4.15.1-10