Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package shadow for openSUSE:Factory checked 
in at 2022-11-04 17:31:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/shadow (Old)
 and      /work/SRC/openSUSE:Factory/.shadow.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "shadow"

Fri Nov  4 17:31:23 2022 rev:50 rq:1032849 version:4.12.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/shadow/shadow.changes    2022-10-26 
12:31:13.396239518 +0200
+++ /work/SRC/openSUSE:Factory/.shadow.new.2275/shadow.changes  2022-11-04 
17:31:25.151685235 +0100
@@ -1,0 +2,6 @@
+Wed Nov  2 10:59:16 UTC 2022 - Michael Vetter <mvet...@suse.com>
+
+- bsc#1204811: Fix chage date format string regression
+  * Add shadow-chage-format.patch
+
+-------------------------------------------------------------------

New:
----
  shadow-chage-format.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ shadow.spec ++++++
--- /var/tmp/diff_new_pack.JzJaJX/_old  2022-11-04 17:31:26.003689819 +0100
+++ /var/tmp/diff_new_pack.JzJaJX/_new  2022-11-04 17:31:26.023689926 +0100
@@ -61,6 +61,8 @@
 Patch9:         disable_new_audit_function.patch
 # PATCH-FIX-UPSTREAM  shadow-prefix-overflow.patch mvet...@suse.com -- Fix 
buffer overflow when using --prefix in useradd
 Patch10:        
https://github.com/shadow-maint/shadow/commit/eaebea55a495a56317ed85e959b3599f73c6bdf2.patch#/shadow-prefix-overflow.patch
+# PATCH-FIX-UPSTREAM shadow-chage-format.patch mvet...@suse.com -- Fix chage 
format string
+Patch11:        
https://github.com/shadow-maint/shadow/commit/e503fd574b7dbf6b21b1168e20938f0922807916.patch#/shadow-chage-format.patch
 BuildRequires:  audit-devel > 2.3
 BuildRequires:  autoconf
 BuildRequires:  automake
@@ -132,6 +134,7 @@
 %patch9 -p1
 %endif
 %patch10 -p1
+%patch11 -p1
 
 iconv -f ISO88591 -t utf-8  doc/HOWTO > doc/HOWTO.utf8
 mv -v doc/HOWTO.utf8 doc/HOWTO


++++++ shadow-chage-format.patch ++++++
>From e503fd574b7dbf6b21b1168e20938f0922807916 Mon Sep 17 00:00:00 2001
From: Xiami <1927254+xiami2...@users.noreply.github.com>
Date: Wed, 5 Oct 2022 18:11:28 +0800
Subject: [PATCH] chage: Fix regression in print_date

Introduced by c6c8130db4319613a91dd07bbb845f6c33c5f79f

After removing snprintf, the format string should get unescaped once.

Fixes #564

Reporter and patch author: DerMouse (github.com/DerMouse)
---
 src/chage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/chage.c b/src/chage.c
index 8cf677942..01570d725 100644
--- a/src/chage.c
+++ b/src/chage.c
@@ -228,7 +228,7 @@ static void print_date (time_t date)
        if (NULL == tp) {
                (void) printf ("time_t: %lu\n", (unsigned long)date);
        } else {
-               (void) strftime (buf, sizeof buf, iflg ? "%%Y-%%m-%%d" : "%%b 
%%d, %%Y", tp);
+               (void) strftime (buf, sizeof buf, iflg ? "%Y-%m-%d" : "%b %d, 
%Y", tp);
                (void) puts (buf);
        }
 }

Reply via email to