Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package shadow for openSUSE:Factory checked in at 2023-01-15 17:57:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/shadow (Old) and /work/SRC/openSUSE:Factory/.shadow.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "shadow" Sun Jan 15 17:57:46 2023 rev:54 rq:1058151 version:4.13 Changes: -------- --- /work/SRC/openSUSE:Factory/shadow/shadow.changes 2022-12-18 17:22:24.973273231 +0100 +++ /work/SRC/openSUSE:Factory/.shadow.new.32243/shadow.changes 2023-01-15 17:57:50.958090083 +0100 @@ -1,0 +2,7 @@ +Fri Jan 13 08:21:46 UTC 2023 - Michael Vetter <mvet...@suse.com> + +- Add shadow-fix-print-login-timeout.patch: + Fix printing full login timeout message + See gh/shadow-maint/shadow#621 + +------------------------------------------------------------------- @@ -5,0 +13 @@ + See gh/shadow-maint/shadow#606 New: ---- shadow-fix-print-login-timeout.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ shadow.spec ++++++ --- /var/tmp/diff_new_pack.gk96tp/_old 2023-01-15 17:57:51.742094736 +0100 +++ /var/tmp/diff_new_pack.gk96tp/_new 2023-01-15 17:57:51.750094783 +0100 @@ -1,7 +1,7 @@ # # spec file for package shadow # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -53,12 +53,14 @@ Patch5: shadow-login_defs-comments.patch # PATCH-FEATURE-SUSE shadow-login_defs-suse.patch ku...@suse.com -- Customize login.defs. Patch6: shadow-login_defs-suse.patch -# PATCH-FEATURE-SUSE Copy also skeleton files from /usr/etc/skel (boo#1173321) +# PATCH-FEATURE-SUSE Copy also skeleton files from /usr/etc/skel (boo#1173321) (gh/shadow-maint/shadow#591) Patch7: useradd-userkeleton.patch # PATCH-FIX-SUSE disable_new_audit_function.patch adam.ma...@suse.de -- Disable newer libaudit functionality for older distributions. Patch8: disable_new_audit_function.patch # PATCH-FIX-UPSTREAM shadow-audit-no-id.patch mvet...@suse.com -- Fix useradd audit event logging of ID field (bsc#1205502) (gh/shadow-maint/shadow#606) Patch9: shadow-audit-no-id.patch +# PATCH-FIX-UPSTREAM shadow-fix-print-login-timeout.patch mvet...@suse.com -- Fix print full login timeout message (gh/shadow-maint/shadow#621) +Patch10: https://github.com/shadow-maint/shadow/commit/670cae834827a8f794e6f7464fa57790d911b63c.patch#/shadow-fix-print-login-timeout.patch BuildRequires: audit-devel > 2.3 BuildRequires: autoconf BuildRequires: automake @@ -129,6 +131,7 @@ %patch8 -p1 %endif %patch9 -p1 +%patch10 -p1 iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8 mv -v doc/HOWTO.utf8 doc/HOWTO ++++++ shadow-fix-print-login-timeout.patch ++++++ >From 670cae834827a8f794e6f7464fa57790d911b63c Mon Sep 17 00:00:00 2001 From: SoumyaWind <121475834+soumyaw...@users.noreply.github.com> Date: Tue, 27 Dec 2022 17:40:17 +0530 Subject: [PATCH] shadow: Fix can not print full login timeout message Login timed out message prints only first few bytes when write is immediately followed by exit. Calling exit from new handler provides enough time to display full message. --- src/login.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/login.c b/src/login.c index 116e2cb3..c55f4de0 100644 --- a/src/login.c +++ b/src/login.c @@ -120,6 +120,7 @@ static void get_pam_user (char **ptr_pam_user); static void init_env (void); static void alarm_handler (int); +static void exit_handler (int); /* * usage - print login command usage and exit @@ -391,11 +392,16 @@ static void init_env (void) #endif /* !USE_PAM */ } +static void exit_handler (unused int sig) +{ + _exit (0); +} static void alarm_handler (unused int sig) { write (STDERR_FILENO, tmsg, strlen (tmsg)); - _exit (0); + signal(SIGALRM, exit_handler); + alarm(2); } #ifdef USE_PAM