packages: utempter/utempter.spec, utempter/utempter-64bit_timeval.patch (NE...
baggins
baggins at pld-linux.org
Tue Sep 21 13:48:03 CEST 2010
Author: baggins Date: Tue Sep 21 11:48:03 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- rel 10
- added type size fix for utmpx.ut_tv by Adam Osuchowski <adwol * zonk.pl>
---- Files affected:
packages/utempter:
utempter.spec (1.61 -> 1.62) , utempter-64bit_timeval.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/utempter/utempter.spec
diff -u packages/utempter/utempter.spec:1.61 packages/utempter/utempter.spec:1.62
--- packages/utempter/utempter.spec:1.61 Wed Nov 19 03:36:44 2008
+++ packages/utempter/utempter.spec Tue Sep 21 13:47:57 2010
@@ -7,13 +7,14 @@
Summary(uk.UTF-8): Привілейована програма для внесення змін до utmp/wtmp
Name: utempter
Version: 0.5.5
-Release: 9
+Release: 10
License: MIT or LGPL
Group: Base
Source0: %{name}-%{version}.tar.gz
# Source0-md5: a628f149132e2f729bc4601e6a4f6c29
Patch0: %{name}-lastlog.patch
Patch1: %{name}-utmp-cleanup.patch
+Patch2: %{name}-64bit_timeval.patch
BuildRequires: rpmbuild(macros) >= 1.202
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
@@ -71,6 +72,7 @@
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
%{__make} \
@@ -126,6 +128,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.62 2010/09/21 11:47:57 baggins
+- rel 10
+- added type size fix for utmpx.ut_tv by Adam Osuchowski <adwol * zonk.pl>
+
Revision 1.61 2008/11/19 02:36:44 glen
- release 9
================================================================
Index: packages/utempter/utempter-64bit_timeval.patch
diff -u /dev/null packages/utempter/utempter-64bit_timeval.patch:1.1
--- /dev/null Tue Sep 21 13:48:03 2010
+++ packages/utempter/utempter-64bit_timeval.patch Tue Sep 21 13:47:57 2010
@@ -0,0 +1,21 @@
+--- utempter-0.5.5/utempter.c.orig 2010-02-28 21:06:00.395478197 +0100
++++ utempter-0.5.5/utempter.c 2010-02-28 21:06:52.294473115 +0100
+@@ -91,6 +91,7 @@
+ char * id;
+ int fd;
+ struct lastlog ll;
++ struct timeval tv;
+
+ if (argc < 3) usage();
+
+@@ -158,7 +159,9 @@
+
+ strncpy(utx.ut_id, id, sizeof(utx.ut_id));
+
+- gettimeofday(&utx.ut_tv, NULL);
++ gettimeofday(&tv, NULL);
++ utx.ut_tv.tv_sec = tv.tv_sec;
++ utx.ut_tv.tv_usec = tv.tv_usec;
+ ll.ll_time = time(NULL);
+
+ pututxline(&utx);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/utempter/utempter.spec?r1=1.61&r2=1.62&f=u
More information about the pld-cvs-commit
mailing list