diff --git a/2.23-login-lastlog-create.patch b/2.23-login-lastlog-create.patch deleted file mode 100644 index 6db26e2..0000000 --- a/2.23-login-lastlog-create.patch +++ /dev/null @@ -1,11 +0,0 @@ -diff -up util-linux-2.23.2/login-utils/login.c.kzak util-linux-2.23.2/login-utils/login.c ---- util-linux-2.23.2/login-utils/login.c.kzak 2013-07-30 10:39:26.222738397 +0200 -+++ util-linux-2.23.2/login-utils/login.c 2013-09-09 09:01:39.923225757 +0200 -@@ -502,7 +502,7 @@ static void log_lastlog(struct login_con - if (!cxt->pwd) - return; - -- fd = open(_PATH_LASTLOG, O_RDWR, 0); -+ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0); - if (fd < 0) - return; diff --git a/2.28-login-lastlog-create.patch b/2.28-login-lastlog-create.patch new file mode 100644 index 0000000..869543e --- /dev/null +++ b/2.28-login-lastlog-create.patch @@ -0,0 +1,12 @@ +diff -up util-linux-2.28/login-utils/login.c.kzak util-linux-2.28/login-utils/login.c +--- util-linux-2.28/login-utils/login.c.kzak 2016-03-08 14:28:16.724156218 +0100 ++++ util-linux-2.28/login-utils/login.c 2016-04-26 12:45:29.235326017 +0200 +@@ -510,7 +510,7 @@ static void log_lastlog(struct login_con + sa.sa_handler = SIG_IGN; + sigaction(SIGXFSZ, &sa, &oldsa_xfsz); + +- fd = open(_PATH_LASTLOG, O_RDWR, 0); ++ fd = open(_PATH_LASTLOG, O_RDWR | O_CREAT, 0); + if (fd < 0) + goto done; + diff --git a/util-linux.spec b/util-linux.spec index 451061e..11bf5d1 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -2,7 +2,7 @@ Summary: A collection of basic system utilities Name: util-linux Version: 2.28 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2 and GPLv2+ and LGPLv2+ and BSD with advertising and Public Domain Group: System Environment/Base URL: http://en.wikipedia.org/wiki/Util-linux @@ -87,7 +87,7 @@ Requires: libfdisk = %{version}-%{release} ### Ready for upstream? ### # 151635 - makeing /var/log/lastlog -Patch0: 2.23-login-lastlog-create.patch +Patch0: 2.28-login-lastlog-create.patch %description The util-linux package contains a large variety of low-level system @@ -919,6 +919,9 @@ exit 0 %{_libdir}/python*/site-packages/libmount/* %changelog +* Tue Apr 26 2016 Karel Zak - 2.28-2 +- refresh login-lastlog-create.patch + * Tue Apr 12 2016 Karel Zak - 2.28-1 - upgrade to stable v2.28