rpms/shadow-utils/devel shadow-4.1.3-lastlog.patch, NONE, 1.1 shadow-utils.spec, 1.131, 1.132

Peter Vrabec pvrabec at fedoraproject.org
Wed Apr 22 08:58:32 UTC 2009


Author: pvrabec

Update of /cvs/extras/rpms/shadow-utils/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv25940

Modified Files:
	shadow-utils.spec 
Added Files:
	shadow-4.1.3-lastlog.patch 
Log Message:
lastlog fix


shadow-4.1.3-lastlog.patch:

--- NEW FILE shadow-4.1.3-lastlog.patch ---
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);
 }


Index: shadow-utils.spec
===================================================================
RCS file: /cvs/extras/rpms/shadow-utils/devel/shadow-utils.spec,v
retrieving revision 1.131
retrieving revision 1.132
diff -u -r1.131 -r1.132
--- shadow-utils.spec	20 Apr 2009 09:47:31 -0000	1.131
+++ shadow-utils.spec	22 Apr 2009 08:58:31 -0000	1.132
@@ -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 @@
 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 @@
 %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 @@
 %{_mandir}/man8/vigr.8*
 
 %changelog
+* Wed Apr 22 2009 Peter Vrabec <pvrabec at redhat.com> 2:4.1.3.1-2
+- lastlog fix
+
 * Fri Apr 17 2009 Peter Vrabec <pvrabec at redhat.com> 2:4.1.3.1-1
 - upgrade
 




More information about the scm-commits mailing list