فهرست منبع

we dont want to truncate the offset when dealing with the syscall3 version as this will screw up some 64bit hosts

Mike Frysinger 19 سال پیش
والد
کامیت
6266e361a1
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      libc/sysdeps/linux/common/llseek.c

+ 1 - 1
libc/sysdeps/linux/common/llseek.c

@@ -53,7 +53,7 @@ loff_t attribute_hidden __lseek64(int fd, loff_t offset, int whence)
 extern __off_t __lseek(int fildes, off_t offset, int whence) attribute_hidden;
 loff_t __lseek64(int fd, loff_t offset, int whence)
 {
-	return(loff_t)(__lseek(fd, (off_t) (offset & 0xffffffff), whence));
+	return(loff_t)(__lseek(fd, (off_t) (offset), whence));
 }
 #endif
 strong_alias(__lseek64,lseek64)