From 3e9bde7e8ee7048e5687d16f62d6039485ea083a Mon Sep 17 00:00:00 2001 From: 2xsec Date: Mon, 8 Oct 2018 16:37:40 +0900 Subject: [PATCH] file_utils: fix too wide or inconsistent non-owner permissions Signed-off-by: 2xsec --- src/lxc/file_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/file_utils.c b/src/lxc/file_utils.c index 891aa0ffd..1655e0053 100644 --- a/src/lxc/file_utils.c +++ b/src/lxc/file_utils.c @@ -302,7 +302,7 @@ FILE *fopen_cloexec(const char *path, const char *mode) open_mode |= O_EXCL; open_mode |= O_CLOEXEC; - fd = open(path, open_mode, 0666); + fd = open(path, open_mode, 0660); if (fd < 0) return NULL; -- 2.47.2