lastlog fix

This commit is contained in:
Peter Vrabec 2009-04-22 08:58:31 +00:00
parent da96b3d14b
commit d4689ff3b2
2 changed files with 27 additions and 1 deletions

View 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);
}

View file

@ -1,7 +1,7 @@
Summary: Utilities for managing accounts and shadow password files
Name: shadow-utils
Version: 4.1.3.1
Release: 1%{?dist}
Release: 2%{?dist}
Epoch: 2
URL: http://pkg-shadow.alioth.debian.org/
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
Patch0: shadow-4.1.3-redhat.patch
Patch1: shadow-4.1.3-goodname.patch
Patch2: shadow-4.1.3-lastlog.patch
License: BSD and GPLv2+
Group: System Environment/Base
BuildRequires: libselinux-devel >= 1.25.2-1
@ -35,6 +36,7 @@ are used for managing group accounts.
%setup -q -n shadow-%{version}
%patch0 -p1 -b .redhat
%patch1 -p1 -b .goodname
%patch2 -p1 -b .lastlog
iconv -f ISO88591 -t utf-8 doc/HOWTO > doc/HOWTO.utf8
cp -f doc/HOWTO.utf8 doc/HOWTO
@ -174,6 +176,9 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man8/vigr.8*
%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
- upgrade