Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/fs/vfs ignore EOPNOTSUPP errors for fs's that don't su...
details: https://anonhg.NetBSD.org/src/rev/3764ce59409f
branches: trunk
changeset: 364571:3764ce59409f
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 29 22:30:07 2022 +0000
description:
ignore EOPNOTSUPP errors for fs's that don't support hard links.
diffstat:
tests/fs/vfs/t_link.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 44b9d9ff37fd -r 3764ce59409f tests/fs/vfs/t_link.c
--- a/tests/fs/vfs/t_link.c Tue Mar 29 22:29:29 2022 +0000
+++ b/tests/fs/vfs/t_link.c Tue Mar 29 22:30:07 2022 +0000
@@ -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 @@
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)
Home |
Main Index |
Thread Index |
Old Index