]> Zhao Yanbai Git Server - minix.git/commitdiff
make lseek64 return correct new position
authorDavid van Moolenbroek <david@minix3.org>
Sat, 23 May 2009 13:47:17 +0000 (13:47 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Sat, 23 May 2009 13:47:17 +0000 (13:47 +0000)
lib/other/_lseek64.c

index e4aa9c506fc8d66908a23fd928f3bbc801fc3ba6..057877b126d1ef93eb098c40f52ac76491df858b 100644 (file)
@@ -17,6 +17,6 @@ u64_t *newpos;
   m.m2_i2 = whence;
   if (_syscall(FS, LLSEEK, &m) < 0) return -1;
   if (newpos)
-       *newpos= make64(m.m2_l2, m.m2_l1);
+       *newpos= make64(m.m2_l1, m.m2_l2);
   return 0;
 }