From e58056cb5d7dd11f9b5b717c0c537a779f59a495 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 6 Dec 2022 09:37:20 +0000 Subject: [PATCH] Correct previous, must exit 0 to signal failure. --- regress/sys/uvm/wx_syscall/wx_syscall.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.20.1