From: Colin Walters Date: Fri, 2 Jun 2023 13:28:19 +0000 (-0400) Subject: mount-util: Add missing O_CLOEXEC X-Git-Tag: archive/raspbian/2023.7-3+rpi1~1^2~9^2~1^2~27^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1f9607a8e92603d505f1709ee3e7c4424614edbd;p=ostree.git mount-util: Add missing O_CLOEXEC Seen in review. --- 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)