[packages/rdate] Rel 7

arekm arekm at pld-linux.org
Mon Mar 9 16:22:10 CET 2026


commit ad9766595d9af81f1d939ca129a794c8972e1dc7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 16:21:58 2026 +0100

    Rel 7

 rdate-stime-removal.patch | 15 +++++++++++++++
 rdate.spec                |  4 +++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/rdate.spec b/rdate.spec
index 513f9ab..e554a16 100644
--- a/rdate.spec
+++ b/rdate.spec
@@ -8,7 +8,7 @@ Summary(ru.UTF-8):	Программа для чтения удаленных ч
 Summary(tr.UTF-8):	Ağ üzerinden sistem saatini ayarlayan yazılım
 Name:		rdate
 Version:	1.4
-Release:	6
+Release:	7
 License:	GPL v2
 Group:		Networking/Utilities
 Source0:	ftp://people.redhat.com/sopwith/%{name}-%{version}.tar.gz
@@ -17,6 +17,7 @@ Source1:	%{name}.init
 Source2:	%{name}.sysconfig
 Source3:	%{name}.cron
 Patch0:		%{name}-format-security.patch
+Patch1:		%{name}-stime-removal.patch
 Requires(post,preun):	/sbin/chkconfig
 Requires:	rc-scripts
 Obsoletes:	rdate-bsd
@@ -84,6 +85,7 @@ da mümkündür. Ne var ki bu uygulama çok hassas değildir.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__make} clean
diff --git a/rdate-stime-removal.patch b/rdate-stime-removal.patch
new file mode 100644
index 0000000..68d054e
--- /dev/null
+++ b/rdate-stime-removal.patch
@@ -0,0 +1,15 @@
+--- rdate-1.4/rdate.c.orig	2024-01-01 00:00:00.000000000 +0000
++++ rdate-1.4/rdate.c	2024-01-01 00:00:00.000000000 +0000
+@@ -298,7 +298,11 @@
+ 	  writeLog(0, "[%s]\t%s", hosts[i], ctime(&timeval));
+
+ 	  /* Do specified action(s) */
+-	  if(set_mode && stime(&timeval) < 0)
++	  struct timespec ts;
++	  ts.tv_sec = timeval;
++	  ts.tv_nsec = 0;
++
++	  if(set_mode && clock_settime(CLOCK_REALTIME, &ts) < 0)
+ 	    {
+ 	      writeLog(1, "%s: could not set system time: %s", argv0, strerror(errno));
+ 	      retval = 1;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rdate.git/commitdiff/ad9766595d9af81f1d939ca129a794c8972e1dc7



More information about the pld-cvs-commit mailing list