lastlog fix
This commit is contained in:
parent
da96b3d14b
commit
d4689ff3b2
21
shadow-4.1.3-lastlog.patch
Normal file
21
shadow-4.1.3-lastlog.patch
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
diff -up shadow-4.1.3.1/src/lastlog.c.lastlog shadow-4.1.3.1/src/lastlog.c
|
||||||
|
--- shadow-4.1.3.1/src/lastlog.c.lastlog 2009-04-22 10:29:53.000000000 +0200
|
||||||
|
+++ shadow-4.1.3.1/src/lastlog.c 2009-04-22 10:30:40.000000000 +0200
|
||||||
|
@@ -266,8 +266,7 @@ int main (int argc, char **argv)
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
|
- print ();
|
||||||
|
- /* Get the laslog size */
|
||||||
|
+ /* Get the lastlog size */
|
||||||
|
if (fstat (fileno (lastlogfile), &statbuf) != 0) {
|
||||||
|
fprintf (stderr,
|
||||||
|
_("lastlog: Cannot get the size of %s: %s\n"),
|
||||||
|
@@ -275,6 +274,7 @@ int main (int argc, char **argv)
|
||||||
|
exit (1);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ print ();
|
||||||
|
fclose (lastlogfile);
|
||||||
|
exit (0);
|
||||||
|
}
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Utilities for managing accounts and shadow password files
|
Summary: Utilities for managing accounts and shadow password files
|
||||||
Name: shadow-utils
|
Name: shadow-utils
|
||||||
Version: 4.1.3.1
|
Version: 4.1.3.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
URL: http://pkg-shadow.alioth.debian.org/
|
URL: http://pkg-shadow.alioth.debian.org/
|
||||||
Source0: ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-%{version}.tar.gz
|
Source0: ftp://pkg-shadow.alioth.debian.org/pub/pkg-shadow/shadow-%{version}.tar.gz
|
||||||
@ -9,6 +9,7 @@ Source1: shadow-4.0.17-login.defs
|
|||||||
Source2: shadow-4.0.18.1-useradd
|
Source2: shadow-4.0.18.1-useradd
|
||||||
Patch0: shadow-4.1.3-redhat.patch
|
Patch0: shadow-4.1.3-redhat.patch
|
||||||
Patch1: shadow-4.1.3-goodname.patch
|
Patch1: shadow-4.1.3-goodname.patch
|
||||||
|
Patch2: shadow-4.1.3-lastlog.patch
|
||||||
License: BSD and GPLv2+
|
License: BSD and GPLv2+
|
||||||
Group: System Environment/Base
|
Group: System Environment/Base
|
||||||
BuildRequires: libselinux-devel >= 1.25.2-1
|
BuildRequires: libselinux-devel >= 1.25.2-1
|
||||||
@ -35,6 +36,7 @@ are used for managing group accounts.
|
|||||||
%setup -q -n shadow-%{version}
|
%setup -q -n shadow-%{version}
|
||||||
%patch0 -p1 -b .redhat
|
%patch0 -p1 -b .redhat
|
||||||
%patch1 -p1 -b .goodname
|
%patch1 -p1 -b .goodname
|
||||||
|
%patch2 -p1 -b .lastlog
|
||||||
|
|
||||||
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
|
||||||
cp -f doc/HOWTO.utf8 doc/HOWTO
|
cp -f doc/HOWTO.utf8 doc/HOWTO
|
||||||
@ -174,6 +176,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man8/vigr.8*
|
%{_mandir}/man8/vigr.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 22 2009 Peter Vrabec <pvrabec@redhat.com> 2:4.1.3.1-2
|
||||||
|
- lastlog fix
|
||||||
|
|
||||||
* Fri Apr 17 2009 Peter Vrabec <pvrabec@redhat.com> 2:4.1.3.1-1
|
* Fri Apr 17 2009 Peter Vrabec <pvrabec@redhat.com> 2:4.1.3.1-1
|
||||||
- upgrade
|
- upgrade
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user