From 624b1084ab93181ede31571db8226e4322a6171c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 2 Jun 2023 13:10:12 -0400 Subject: [PATCH] prepare-root: Add another missing O_CLOEXEC --- src/switchroot/ostree-prepare-root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchroot/ostree-prepare-root.c b/src/switchroot/ostree-prepare-root.c index 136502cc..0c8c6dd7 100644 --- a/src/switchroot/ostree-prepare-root.c +++ b/src/switchroot/ostree-prepare-root.c @@ -315,7 +315,7 @@ main (int argc, char *argv[]) int cfs_fd; unsigned cfs_flags; - cfs_fd = open (".ostree.cfs", O_RDONLY); + cfs_fd = open (".ostree.cfs", O_RDONLY | O_CLOEXEC); if (cfs_fd < 0) { if (errno == ENOENT) -- 2.30.2