Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package lastlog2 for openSUSE:Factory checked in at 2024-02-16 21:49:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/lastlog2 (Old) and /work/SRC/openSUSE:Factory/.lastlog2.new.1815 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "lastlog2" Fri Feb 16 21:49:19 2024 rev:10 rq:1147104 version:1.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/lastlog2/lastlog2.changes 2024-02-15 20:59:10.417381159 +0100 +++ /work/SRC/openSUSE:Factory/.lastlog2.new.1815/lastlog2.changes 2024-02-16 21:49:37.665511346 +0100 @@ -1,0 +2,6 @@ +Fri Feb 16 13:59:34 UTC 2024 - Thorsten Kukuk <ku...@suse.com> + +- Verson 1.3.1 + - pam_lastlog2: improve ll2_read_entry error handling [bsc#1220000] + +------------------------------------------------------------------- Old: ---- lastlog2-1.3.0.tar.xz New: ---- lastlog2-1.3.1.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ lastlog2.spec ++++++ --- /var/tmp/diff_new_pack.tWvmfh/_old 2024-02-16 21:49:38.069525949 +0100 +++ /var/tmp/diff_new_pack.tWvmfh/_new 2024-02-16 21:49:38.069525949 +0100 @@ -18,7 +18,7 @@ %define lname liblastlog2-1 Name: lastlog2 -Version: 1.3.0 +Version: 1.3.1 Release: 0 Summary: Reports most recent login of users License: BSD-2-Clause ++++++ lastlog2-1.3.0.tar.xz -> lastlog2-1.3.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastlog2-1.3.0/meson.build new/lastlog2-1.3.1/meson.build --- old/lastlog2-1.3.0/meson.build 2024-02-14 12:04:07.000000000 +0100 +++ new/lastlog2-1.3.1/meson.build 2024-02-16 14:58:25.000000000 +0100 @@ -11,7 +11,7 @@ 'b_pie=true', 'warning_level=2',], license : ['BSD-2-Clause',], - version : '1.3.0', + version : '1.3.1', ) cc = meson.get_compiler('c') diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lastlog2-1.3.0/src/pam_lastlog2.c new/lastlog2-1.3.1/src/pam_lastlog2.c --- old/lastlog2-1.3.0/src/pam_lastlog2.c 2024-02-14 12:04:07.000000000 +0100 +++ new/lastlog2-1.3.1/src/pam_lastlog2.c 2024-02-16 14:58:25.000000000 +0100 @@ -26,6 +26,7 @@ */ #include <time.h> +#include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -244,17 +245,22 @@ if (ll2_check_database (lastlog2_path) != 0) return retval; - if (ll2_read_entry (lastlog2_path, user, &ll_time, &tty, &rhost, - &service, &error) != 0) + int ret = ll2_read_entry (lastlog2_path, user, &ll_time, &tty, &rhost, + &service, &error); + if (ret < 0) { if (error) { pam_syslog (pamh, LOG_ERR, "%s", error); free (error); + retval = PAM_SYSTEM_ERR; } - else - pam_syslog (pamh, LOG_ERR, "Unknown error reading database %s", lastlog2_path); - return PAM_SYSTEM_ERR; + else if (ret != -ENOENT) + { + pam_syslog (pamh, LOG_ERR, "Unknown error reading database %s", lastlog2_path); + retval = PAM_SYSTEM_ERR; + } + return retval; } if (ll_time)