Correct previous, must exit 0 to signal failure.
authoranton <anton@openbsd.org>
Tue, 6 Dec 2022 09:37:20 +0000 (09:37 +0000)
committeranton <anton@openbsd.org>
Tue, 6 Dec 2022 09:37:20 +0000 (09:37 +0000)
regress/sys/uvm/wx_syscall/wx_syscall.c

index b272f2c..c4531a4 100644 (file)
@@ -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);