file_utils: fix too wide or inconsistent non-owner permissions

Signed-off-by: 2xsec <dh48.jeong@samsung.com>
This commit is contained in:
2xsec 2018-10-08 16:37:40 +09:00
parent 4752343f82
commit 3e9bde7e8e
No known key found for this signature in database
GPG Key ID: 0BE2750EE612F372

View File

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