Skip to content
Commit 2158d3fd authored by Phillip Lougher's avatar Phillip Lougher
Browse files

Squashfs: fix f_pos check in get_dir_index_using_offset



One off error in the f_pos check.  If f_pos is 3 or less don't
bother reading the index because we're at the start of the
directory, and we obviously already know where that is on disk.

This eliminates an unnecessary read.

Signed-off-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
parent 47f4396e
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