summaryrefslogtreecommitdiff
path: root/tests/fs
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2022-03-29 22:30:07 +0000
committerchristos <christos@NetBSD.org>2022-03-29 22:30:07 +0000
commitbc29962e0edeb9a44cd0a41d87e9822b7f5c9fa8 (patch)
tree025641de5092a86d6cbed51f99a7475214adba82 /tests/fs
parent89a736841e233b2c27190e91533ee86733796921 (diff)
ignore EOPNOTSUPP errors for fs's that don't support hard links.
Diffstat (limited to 'tests/fs')
-rw-r--r--tests/fs/vfs/t_link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/fs/vfs/t_link.c b/tests/fs/vfs/t_link.c
index ac6f5caefd8..0c7390c7d4a 100644
--- a/tests/fs/vfs/t_link.c
+++ b/tests/fs/vfs/t_link.c
@@ -1,4 +1,4 @@
-/* $NetBSD: t_link.c,v 1.1 2022/03/28 20:51:04 christos Exp $ */
+/* $NetBSD: t_link.c,v 1.2 2022/03/29 22:30:07 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@ hardlink(const atf_tc_t *tc, const char *mp, uid_t u1, uid_t u2,
if (rump_sys_setuid(u2) == -1)
atf_tc_fail_errno("setuid");
if (rump_sys_link(name, link) == -1) {
- if (allowed)
+ if (errno != EOPNOTSUPP && allowed)
atf_tc_fail_errno("link");
} else {
if (!allowed)