Changeset 3910 in MondoRescue for branches/3.3/mindi-busybox/util-linux
- Timestamp:
- May 8, 2025, 5:24:25 PM (6 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/rdate.c
r3621 r3910 68 68 if (current_time == remote_time) 69 69 bb_error_msg("current time matches remote time"); 70 else 71 if (stime(&remote_time) < 0) 70 else { 71 struct timespec ts; 72 ts.tv_sec = remote_time; 73 ts.tv_nsec = 0; 74 if (clock_settime(CLOCK_REALTIME, &ts) < 0) 72 75 bb_perror_msg_and_die("can't set time of day"); 76 } 73 77 } 74 78
Note:
See TracChangeset
for help on using the changeset viewer.