unlink("/") just needs to error. Checking for a specific errno makes
authorclaudio <claudio@openbsd.org>
Tue, 31 Oct 2023 07:59:52 +0000 (07:59 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 31 Oct 2023 07:59:52 +0000 (07:59 +0000)
commite5babc7b13e331b3398c63151ea17c2fd6b357e1
tree5121c00c2db30aeebfc209544be36770343c00af
parent06ecc41f821a0630036c4e2c524053ac38154a44
unlink("/") just needs to error. Checking for a specific errno makes
little sense here since there are multiple possible errnos that could
be returned. On OpenBSD this returns EISDIR and not EBUSY.
OK mbuhl@ millert@
regress/lib/libc/sys/t_unlink.c