]> git.ipfire.org Git - thirdparty/glibc.git/commit
hurd: Fix EINVAL error on linking to a slash-trailing path [BZ #32569]
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 19 Jan 2025 13:59:13 +0000 (14:59 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Sun, 19 Jan 2025 14:11:44 +0000 (15:11 +0100)
commit8ef17919509e909746b0ad6465e9c6c952a3fe34
tree26adca56087e1eb18beab4f0e51b17b6797f917b
parent91bb902f58264a2fd50fbce8f39a9a290dd23706
hurd: Fix EINVAL error on linking to a slash-trailing path [BZ #32569]

When the target path finishes with a slash, __file_name_split_at returns
an empty file name. We can test for this to refuse doing the link.
sysdeps/mach/hurd/bind.c
sysdeps/mach/hurd/linkat.c
sysdeps/mach/hurd/mknodat.c
sysdeps/mach/hurd/symlinkat.c