Procházet zdrojové kódy

fix broken time64 clock_adjtime

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.
Rich Felker před 4 roky
rodič
revize
ef51b76222
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/linux/clock_adjtime.c

+ 1 - 1
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_adjtime64, clock_id, &ktx);
 		if (r>=0) {
 			utx->modes = ktx.modes;
 			utx->offset = ktx.offset;