Skip to content

Commit eedef09

Browse files
committed
* bdx/binary.py (read_symtable): stat() the open fd, not file path.
1 parent 5ffaa7f commit eedef09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bdx/binary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def read_symtable(file: str | Path) -> list[Symbol]:
3030
with open(file, "rb") as f, ELFFile(f) as elf:
3131
symtab = elf.get_section_by_name(".symtab")
3232

33-
mtime = os.stat(file).st_mtime_ns
33+
mtime = os.stat(f.fileno()).st_mtime_ns
3434

3535
symbols = []
3636
for symbol in symtab.iter_symbols(): # pyright: ignore

0 commit comments

Comments
 (0)