Hi Bruno,
As I mentioned in my testing of the new GNU sed snapshot, test-open.sh
fails on GNU/Hurd [1]. Here is the test case where it fails:
$ ldd --version | head -n 1
ldd (Debian GLIBC 2.42-15~hurd.1) 2.42
$ cat main.c
#include <fcntl.h>
int
main (void)
{
int fd = open ("/dev/tty/", O_RDONLY);
return 0;
}
$ gcc main.c
$ ./a.out
Segmentation fault ./a.out
Note that this issue only occurs with the trailing slash:
$ sed -i 's|/dev/tty/|/dev/tty|' main.c
$ gcc main.c
$ ./a.out
$ echo $?
0
I'm not sure if it is worth replacing open on Hurd just for this, since
the call seems rare. So I figured it was worth mentioning on list.
I also reported it on the glibc bug tracker [2]. I assume it will get
fixed fairly quickly like previous Hurd issues I have reported.
Collin
[1] https://lists.gnu.org/archive/html/sed-devel/2026-04/msg00003.html
[2] https://sourceware.org/bugzilla/show_bug.cgi?id=34070