mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
htpdate: add htpdate package based on AA feed
Source homepage has changed, and sources are updated to version 1.1.1 released 25 August 2015. Patch adjtimex still applies. Changes in version 1.1.1: - Fixed out of bound issue and a missing null-terminated string (thanks to Tobias Stöckmann) Signed-off-by: Tijs Van Buggenhout <tvbuggen@netzerk.be>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
--- a/htpdate.c
|
||||
+++ b/htpdate.c
|
||||
@@ -359,7 +359,7 @@ static int htpdate_adjtimex( double drif
|
||||
|
||||
/* Read current kernel frequency */
|
||||
tmx.modes = 0;
|
||||
- ntp_adjtime(&tmx);
|
||||
+ adjtimex(&tmx);
|
||||
|
||||
/* Calculate new frequency */
|
||||
freq = (long)(65536e6 * drift);
|
||||
@@ -377,7 +377,7 @@ static int htpdate_adjtimex( double drif
|
||||
printlog( 1, "seteuid()" );
|
||||
exit(1);
|
||||
} else {
|
||||
- return( ntp_adjtime(&tmx) );
|
||||
+ return( adjtimex(&tmx) );
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user