mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-22 16:43:05 -05:00
dup and dup2 of a Windows directory descriptor threw. FreeBSD's kern_dup makes both descriptors refer to one open file, so they share the read position; the duplicate now points at the same DirectoryState, which getdents and lseek go through, and keeps it after the original is closed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>