projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e16313
)
fix broken time64 clock_adjtime
author
Rich Felker
<dalias@aerifal.cx>
Wed, 3 Jun 2020 00:07:39 +0000
(20:07 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 3 Jun 2020 00:07:39 +0000
(20:07 -0400)
the 64-bit time code path used the wrong (time32) syscall. fortunately
this code path is not yet taken unless attempting to set a post-Y2038
time.
src/linux/clock_adjtime.c
patch
|
blob
|
history
diff --git
a/src/linux/clock_adjtime.c
b/src/linux/clock_adjtime.c
index 23eb8729db0638aa680bcc840adc48ece77949dc..52d3e0c434a56f6bae6bf3c32f8aba7714105006 100644
(file)
--- a/
src/linux/clock_adjtime.c
+++ b/
src/linux/clock_adjtime.c
@@
-63,7
+63,7
@@
int clock_adjtime (clockid_t clock_id, struct timex *utx)
.stbcnt = utx->stbcnt,
.tai = utx->tai,
};
- r = __syscall(SYS_clock_adjtime, clock_id, &ktx);
+ r = __syscall(SYS_clock_adjtime
64
, clock_id, &ktx);
if (r>=0) {
utx->modes = ktx.modes;
utx->offset = ktx.offset;