Module Name: src
Committed By: christos
Date: Tue Mar 29 22:30:07 UTC 2022
Modified Files:
src/tests/fs/vfs: t_link.c
Log Message:
ignore EOPNOTSUPP errors for fs's that don't support hard links.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/vfs/t_link.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/vfs/t_link.c
diff -u src/tests/fs/vfs/t_link.c:1.1 src/tests/fs/vfs/t_link.c:1.2
--- src/tests/fs/vfs/t_link.c:1.1 Mon Mar 28 16:51:04 2022
+++ src/tests/fs/vfs/t_link.c Tue Mar 29 18:30:07 2022
@@ -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
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)