fix: bind baseline reads to the task local path

This commit is contained in:
teknium1
2026-09-21 15:41:19 -07:00
committed by Teknium
parent e636aedebf
commit 602e76a88b
4 changed files with 7 additions and 7 deletions

View File

@@ -255,7 +255,7 @@ def _file_version(resolved: str) -> tuple | None:
try:
if not stat.S_ISREG(os.stat(resolved).st_mode):
return None
fd = os.open(resolved, os.O_RDONLY | getattr(os, "O_NONBLOCK", 0))
fd = os.open(resolved, os.O_RDONLY | getattr(os, "O_NONBLOCK", 0) | getattr(os, "O_BINARY", 0))
with os.fdopen(fd, "rb") as stream:
before = os.fstat(stream.fileno())
if not stat.S_ISREG(before.st_mode):