[BugFix] openplugins.rock 0 is a valid file descriptor

Change-Id: Id7d9c2c4b9d13433c8aa2260b20f5d74e4b3add8
This commit is contained in:
William Wilgus 2026-06-07 11:11:55 -04:00
parent 1add6b0dd5
commit 9b0516e4e1

View file

@ -1338,7 +1338,7 @@ reopen_datfile:
hash_exists(op_entry.hash, false);
}
if (!fd_dat)
if (fd_dat < 0)
exit = true;
items = rb->lseek(fd_dat, 0, SEEK_END) / op_entry_sz;