From 1f9607a8e92603d505f1709ee3e7c4424614edbd Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 2 Jun 2023 09:28:19 -0400 Subject: [PATCH] mount-util: Add missing O_CLOEXEC Seen in review. --- src/switchroot/ostree-mount-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switchroot/ostree-mount-util.h b/src/switchroot/ostree-mount-util.h index fdf1a434..9f90dc01 100644 --- a/src/switchroot/ostree-mount-util.h +++ b/src/switchroot/ostree-mount-util.h @@ -134,7 +134,7 @@ read_file (const char *path, size_t *out_len) { int fd; - fd = open (path, O_RDONLY); + fd = open (path, O_RDONLY | O_CLOEXEC); if (fd < 0) { if (errno == ENOENT) -- 2.30.2