* Oops, fix a bug in the lseek64() diversion.

This commit is contained in:
Sam Hocevar
2006-12-15 10:07:53 +00:00
committed by sam
parent 4787861fc8
commit 93ef1731f4
+2 -9
View File
@@ -285,15 +285,8 @@ off64_t lseek64(int fd, off64_t offset, int whence)
debug("lseek64(%i, %lli, %i) = %i", fd, (long long int)offset, whence, ret);
if(ret != (off64_t)-1)
{
switch(whence)
{
case SEEK_SET: files[fd].pos = (int64_t)offset; break;
case SEEK_CUR: files[fd].pos += (int64_t)offset; break;
/* FIXME */
//case SEEK_END: files[fd].pos = ftell(stream); break;
}
}
files[fd].pos = (int64_t)ret;
return ret;
}