forked from pool/shadow
Accepting request 1078648 from home:kukuk:branches:Base:System
- Rename lastlog to lastlog.legacy to be able to switch to Y2038 safe lastlog2 as default [jsc#PED-3144] OBS-URL: https://build.opensuse.org/request/show/1078648 OBS-URL: https://build.opensuse.org/package/show/Base:System/shadow?expand=0&rev=145
This commit is contained in:
parent
cdd1d85c79
commit
c13dad9ccc
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 12 12:08:43 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
|
||||||
|
|
||||||
|
- Rename lastlog to lastlog.legacy to be able to switch to
|
||||||
|
Y2038 safe lastlog2 as default [jsc#PED-3144]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Feb 16 11:31:33 UTC 2023 - Michael Vetter <mvetter@suse.com>
|
Thu Feb 16 11:31:33 UTC 2023 - Michael Vetter <mvetter@suse.com>
|
||||||
|
|
||||||
|
14
shadow.spec
14
shadow.spec
@ -227,6 +227,12 @@ if [ ! -d %{buildroot}%{_distconfdir} ]; then
|
|||||||
fi
|
fi
|
||||||
mkdir -p %{buildroot}%{_sysconfdir}/login.defs.d
|
mkdir -p %{buildroot}%{_sysconfdir}/login.defs.d
|
||||||
|
|
||||||
|
%if 0%{?suse_version} >= 1599
|
||||||
|
# Rename lastlog to lastlog.legacy, as it got replaced by lastlog2
|
||||||
|
mv %{buildroot}/%{_bindir}/lastlog %{buildroot}/%{_bindir}/lastlog.legacy
|
||||||
|
mv %{buildroot}/%{_mandir}/man8/lastlog.8 %{buildroot}/%{_mandir}/man8/lastlog.legacy.8
|
||||||
|
%endif
|
||||||
|
|
||||||
%find_lang shadow
|
%find_lang shadow
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -326,7 +332,11 @@ test -f %{_sysconfdir}/login.defs.rpmsave && mv -v %{_sysconfdir}/login.defs.rpm
|
|||||||
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/passwd
|
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/passwd
|
||||||
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/newgidmap
|
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/newgidmap
|
||||||
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/newuidmap
|
%verify(not mode) %attr(4755,root,shadow) %{_bindir}/newuidmap
|
||||||
|
%if 0%{?suse_version} >= 1599
|
||||||
|
%{_bindir}/lastlog.legacy
|
||||||
|
%else
|
||||||
%{_bindir}/lastlog
|
%{_bindir}/lastlog
|
||||||
|
%endif
|
||||||
%{_bindir}/sg
|
%{_bindir}/sg
|
||||||
%{_bindir}/getsubids
|
%{_bindir}/getsubids
|
||||||
%attr(0755,root,root) %{_sbindir}/groupadd
|
%attr(0755,root,root) %{_sbindir}/groupadd
|
||||||
@ -358,7 +368,11 @@ test -f %{_sysconfdir}/login.defs.rpmsave && mv -v %{_sysconfdir}/login.defs.rpm
|
|||||||
%{_mandir}/man8/groupdel.8%{?ext_man}
|
%{_mandir}/man8/groupdel.8%{?ext_man}
|
||||||
%{_mandir}/man8/groupmod.8%{?ext_man}
|
%{_mandir}/man8/groupmod.8%{?ext_man}
|
||||||
%{_mandir}/man8/grpck.8%{?ext_man}
|
%{_mandir}/man8/grpck.8%{?ext_man}
|
||||||
|
%if 0%{?suse_version} >= 1599
|
||||||
|
%{_mandir}/man8/lastlog.legacy.8%{?ext_man}
|
||||||
|
%else
|
||||||
%{_mandir}/man8/lastlog.8%{?ext_man}
|
%{_mandir}/man8/lastlog.8%{?ext_man}
|
||||||
|
%endif
|
||||||
%{_mandir}/man8/newusers.8%{?ext_man}
|
%{_mandir}/man8/newusers.8%{?ext_man}
|
||||||
%{_mandir}/man8/pwck.8%{?ext_man}
|
%{_mandir}/man8/pwck.8%{?ext_man}
|
||||||
%{_mandir}/man8/pwconv.8%{?ext_man}
|
%{_mandir}/man8/pwconv.8%{?ext_man}
|
||||||
|
Loading…
Reference in New Issue
Block a user