Commit 22f3766d77fef397e9b99b944afe773de413b9b3

Paul Eggert 2024-11-11T16:25:50

openat: port lowest-fd to native MS-Windows Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2024-11/msg00081.html * lib/openat.c (openat_permissive): When save_cwd allocates an FD, allocate another one DFD and then close FD so that the later open returns FD (the lowest available fd), as POSIX requires.