From 295820957e3232168b34946cdeb15fa97666aed4 Mon Sep 17 00:00:00 2001 From: Anton Lindqvist Date: Tue, 6 Dec 2022 09:37:21 +0000 Subject: Correct previous, must exit 0 to signal failure. --- regress/sys/uvm/wx_syscall/wx_syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'regress') diff --git a/regress/sys/uvm/wx_syscall/wx_syscall.c b/regress/sys/uvm/wx_syscall/wx_syscall.c index b272f2c3e0c..c4531a42c50 100644 --- a/regress/sys/uvm/wx_syscall/wx_syscall.c +++ b/regress/sys/uvm/wx_syscall/wx_syscall.c @@ -20,10 +20,10 @@ main() if (errno == ENOTSUP) { printf("mprotect -> ENOTSUP? Please run from " "wxallowed filesystem\n"); - exit(0); } else { - err(1, "mprotect"); + warn("mprotect"); } + exit(0); } flock(0, 0); -- cgit v1.2.3