Skip to content
Unverified Commit de912385 authored by Morris Jobke's avatar Morris Jobke
Browse files

Fix seeking on object storage



Seeking is not needed if the $from is 0, because then the pointer is already at the correct position. Additionally another fallback is added, that if the fseek fails it just uses an fread to skip the beginning of the file until it is at the correct position. This skipping is done with a chunked fread.

Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 13087da3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment