diff --git a/lib/util/regress/mktemp/mktemp_test.c b/lib/util/regress/mktemp/mktemp_test.c index b441431736..74845950b2 100644 --- a/lib/util/regress/mktemp/mktemp_test.c +++ b/lib/util/regress/mktemp/mktemp_test.c @@ -151,6 +151,8 @@ main(int argc, char *argv[]) argv += optind; pg = (size_t)sysconf(_SC_PAGESIZE); + if (pg == (size_t)-1) + sudo_fatal("sysconf(_SC_PAGESIZE)"); if (getcwd(cwd, sizeof cwd - 1) == NULL) sudo_fatal("getcwd"); clen = strlen(cwd);