mount-util: Add missing O_CLOEXEC

Seen in review.
This commit is contained in:
Colin Walters 2023-06-02 09:28:19 -04:00
parent b6c054e1fa
commit 1f9607a8e9

View File

@ -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)