From: Colin Walters Date: Fri, 2 Jun 2023 17:10:12 +0000 (-0400) Subject: prepare-root: Add another missing O_CLOEXEC X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~1^2~27^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=624b1084ab93181ede31571db8226e4322a6171c;p=ostree.git prepare-root: Add another missing O_CLOEXEC --- 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)