updated urls and maintainer [release 0.8.1-2mamba;Tue Mar 04 2025]

This commit is contained in:
Silvan Calarco 2025-03-04 14:07:48 +01:00
parent 682fbe3599
commit b893145f17
2 changed files with 48 additions and 6 deletions

View File

@ -0,0 +1,36 @@
From 73e5fbf143566b9a6cfa06a763335897ad342ae9 Mon Sep 17 00:00:00 2001
From: Davide Madrisan <davide.madrisan@gmail.com>
Date: Thu, 20 Dec 2018 22:36:55 +0100
Subject: [PATCH] wtmpxdump.c: fix a gcc warning
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
wtmpxdump.c: In function dumprecord:
wtmpxdump.c:65:17: warning: passing argument 1 of ctime from incompatible pointer type [-Wincompatible-pointer-types]
ct = ctime (&p->ut.ut_tv.tv_sec);
^~~~~~~~~~~~~~~~~~~
In file included from wtmpxdump.c:48:
/usr/include/time.h:142:14: note: expected const time_t * {aka const long int *} but argument is of type __int32_t * {aka int *}
extern char *ctime (const time_t *__timer) __THROW;
^~~~~
Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>
---
src/wtmpxdump.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/wtmpxdump.c b/src/wtmpxdump.c
index 87829f2..e0c4a5f 100644
--- a/src/wtmpxdump.c
+++ b/src/wtmpxdump.c
@@ -62,7 +62,8 @@ dumprecord (struct utmpxlist *p, int what)
printf ("%-8.8s %-12.12s %-16.16s ",
p->ut.ut_user, p->ut.ut_line, p->ut.ut_host);
- ct = ctime (&p->ut.ut_tv.tv_sec);
+ time_t time = p->ut.ut_tv.tv_sec;
+ ct = ctime (&time);
printf ("%10.10s %4.4s %5.5s ", ct, ct + 20, ct + 11);
mins = (p->delta / 60) % 60;

View File

@ -1,24 +1,26 @@
Name: wtmpclean
Version: 0.8.1
Release: 1mamba
Release: 2mamba
Summary: A tool for dumping wtmp files and patching wtmp records
Group: Applications/Security
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://sites.google.com/site/davidemadrisan/opensource
Source: http://sites.google.com/site/davidemadrisan/files/wtmpclean-%{version}.tar.bz2
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/madrisan/wtmpclean
Source: https://github.com/madrisan/wtmpclean.git/v%{version}/wtmpclean-%{version}.tar.bz2
Patch0: wtmpclean-0.8.1-gcc-14.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
wtmpclean is a tool for Unix operating systems written in standard C ANSI, which enables users with sufficient privileges dump wtmp databases and patch or delete wtmp records that log a user or that were created at a given date and time.
%prep
%setup -q
%patch 0 -p1 -b .gcc-14
./autogen.sh
%build
%configure
@ -34,9 +36,13 @@ wtmpclean is a tool for Unix operating systems written in standard C ANSI, which
%files
%defattr(-,root,root)
%{_sbindir}/wtmpclean
%doc AUTHORS COPYING ChangeLog NEWS README
%doc AUTHORS COPYING
#ChangeLog NEWS README
%changelog
* Tue Mar 04 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.1-2mamba
- updated urls and maintainer
* Sat Sep 06 2014 Automatic Build System <autodist@mambasoft.it> 0.8.1-1mamba
- automatic update by autodist