* fhandler.cc (fhandler_base::lseek): Include high order offset
bits in return value.
This commit is contained in:
parent
a2f1155cf2
commit
8f4dfcaa1f
|
@ -1,3 +1,8 @@
|
|||
2003-11-17 Brian Ford <ford@vss.fsi.com>
|
||||
|
||||
* fhandler.cc (fhandler_base::lseek): Include high order offset
|
||||
bits in return value.
|
||||
|
||||
2003-11-17 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* bsdlib.cc (getprogname): New function.
|
||||
|
|
|
@ -874,6 +874,9 @@ fhandler_base::lseek (_off64_t offset, int whence)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (poff_high)
|
||||
res += (_off64_t) *poff_high << 32;
|
||||
|
||||
/* When next we write(), we will check to see if *this* seek went beyond
|
||||
the end of the file, and back-seek and fill with zeros if so - DJ */
|
||||
set_did_lseek ();
|
||||
|
|
Loading…
Reference in New Issue