]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
file_utils: fix too wide or inconsistent non-owner permissions 2679/head
author2xsec <dh48.jeong@samsung.com>
Mon, 8 Oct 2018 07:37:40 +0000 (16:37 +0900)
committer2xsec <dh48.jeong@samsung.com>
Mon, 8 Oct 2018 07:37:40 +0000 (16:37 +0900)
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
src/lxc/file_utils.c

index 891aa0ffd4eff9689e3fab4aee0d106e465bdda8..1655e0053c89c04fd45bdf0b92376e7b3152d3f8 100644 (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;