You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-misc/getdate/files/getdate-glibc-2.31.patch

14 lines
403 B

--- a/getdate.c
+++ b/getdate.c
@@ -214,7 +214,9 @@
/* Dangerous! Could upset cron and other
* timer related events.
*/
- stime(&new_time);
+ struct timespec s = {0};
+ s.tv_sec = new_time;
+ clock_settime(CLOCK_REALTIME, &s);
print_samples(host, first_sample, second_sample);
printf("getdate: set time to %s to match host %s\n",
time_to_str(new_time),