https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292282
--- Comment #10 from Jerry Williams <[email protected]> --- (In reply to Rick Macklem from comment #9) Using opendir() still exhibits the behaviour. I didn't know if uploading a binary was appropriate here, so I posted it here https://codeberg.org/jwillia3/292282 test.c: #include <dirent.h> #include <stdio.h> int main(int argc, char **argv) { DIR *dirp; struct dirent *ent; int n; n = 0; dirp = opendir(argv[1]); while ((ent = readdir(dirp))) { printf("%-8d %s\n", (int) ent->d_fileno, ent->d_name); n++; } closedir(dirp); printf("%d entries\n", n); } transcript: ~$ doas -s # pkg install linux-rl9-devtools Updating FreeBSD-ports repository catalogue... FreeBSD-ports repository is up to date. Updating FreeBSD-ports-kmods repository catalogue... FreeBSD-ports-kmods repository is up to date. All repositories are up to date. The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: linux-rl9-devtools: 9.6_1 [FreeBSD-ports] Number of packages to be installed: 1 The process will require 280 MiB more space. 86 MiB to be downloaded. Proceed with this action? [Y/n]: [1/1] Fetching linux-rl9-devtools-9.6_1~5a97eb46b1.pkg: 100% 86 MiB 45.0MB/s 00:02 Checking integrity... done (0 conflicting) [1/1] Installing linux-rl9-devtools-9.6_1... [1/1] Extracting linux-rl9-devtools-9.6_1: 100% # ^D ~$ /compat/linux/bin/bash bash-5.1$ cc --version cc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-5) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. bash-5.1$ cc $HOME/test.c -o linuxtest bash-5.1$ file linuxtest linuxtest: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=94f5823b0f59ead9e040aa3282d54e2e76c7bb6f, for GNU/Linux 3.2.0, not stripped bash-5.1$ ./linuxtest /mnt/tmp 2964769 . 2 .. 2964770 emptyfile 2964771 test.c 2964772 test 2964773 a.out 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21 entries -- You are receiving this mail because: You are the assignee for the bug.
