From eaf76278ec5d51e072601fb628bfa76e3e01d9e4 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 22 Feb 2022 14:13:15 -0700 Subject: [PATCH] Fix compilation on systems without a real openat(2). --- lib/iolog/regress/iolog_filter/check_iolog_filter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/iolog/regress/iolog_filter/check_iolog_filter.c b/lib/iolog/regress/iolog_filter/check_iolog_filter.c index 8d711f03f..1bea04477 100644 --- a/lib/iolog/regress/iolog_filter/check_iolog_filter.c +++ b/lib/iolog/regress/iolog_filter/check_iolog_filter.c @@ -72,21 +72,21 @@ main(int argc, char *argv[]) goto next; } - ttyout_fd = openat(dfd, "ttyout", O_RDONLY); + ttyout_fd = openat(dfd, "ttyout", O_RDONLY, 0644); if (ttyout_fd == -1) { sudo_warn("ttyout"); errors++; goto next; } - ttyin_fd = openat(dfd, "ttyin", O_RDONLY); + ttyin_fd = openat(dfd, "ttyin", O_RDONLY, 0644); if (ttyin_fd == -1) { sudo_warn("ttyin"); errors++; goto next; } - ttyin_ok_fd = openat(dfd, "ttyin.filtered", O_RDONLY); + ttyin_ok_fd = openat(dfd, "ttyin.filtered", O_RDONLY, 0644); if (ttyin_ok_fd == -1) { sudo_warn("ttyin.filtered"); errors++;