Skip to content

Commit

Permalink
Explicitly reset file position to 0 (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Schamper authored Nov 7, 2023
1 parent cc5c189 commit 65b0781
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dissect/fat/fat.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def __init__(self, fh, encoding="ibm437"):
self.fh = fh
self.encoding = encoding

fh.seek(0)
sector = fh.read(512)
bpb_size = len(c_fat.Bpb)
self.bpb = c_fat.Bpb(sector[:bpb_size])
Expand Down

0 comments on commit 65b0781

Please sign in to comment.