From: 2xsec Date: Mon, 8 Oct 2018 07:37:40 +0000 (+0900) Subject: file_utils: fix too wide or inconsistent non-owner permissions X-Git-Tag: lxc-3.1.0~58^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e9bde7e8ee7048e5687d16f62d6039485ea083a;p=thirdparty%2Flxc.git file_utils: fix too wide or inconsistent non-owner permissions Signed-off-by: 2xsec --- 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;