From 1f1f204b35615fe080ac872390b547bff448a4ba Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 9 Mar 2024 17:46:18 -0500 Subject: [PATCH] fix: only return noop is we are SeekStart and want the beginning, otherwise this is likely actually needing to start a partial content seek --- api/s5/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/s5/file.go b/api/s5/file.go index 33b8aa2..bbdb2b9 100644 --- a/api/s5/file.go +++ b/api/s5/file.go @@ -121,7 +121,7 @@ func (f *S5File) Read(p []byte) (n int, err error) { func (f *S5File) Seek(offset int64, whence int) (int64, error) { switch whence { case io.SeekStart: - if !f.read { + if !f.read && offset == 0 { return 0, nil }