Skip to content

Commit

Permalink
log: fix too wide or inconsistent non-owner permissions
Browse files Browse the repository at this point in the history
Signed-off-by: 2xsec <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed Nov 22, 2018
1 parent 9e8aa57 commit 2d38bc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/log.c
Expand Up @@ -488,7 +488,7 @@ static int build_dir(const char *name)

ret = lxc_unpriv(mkdir(n, 0755));
if (ret && errno != EEXIST) {
SYSERROR("Failed to create directory %s", n);
SYSERROR("Failed to create directory \"%s\"", n);
free(n);
return -1;
}
Expand All @@ -506,7 +506,7 @@ static int log_open(const char *name)
int fd;
int newfd;

fd = lxc_unpriv(open(name, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0666));
fd = lxc_unpriv(open(name, O_CREAT | O_WRONLY | O_APPEND | O_CLOEXEC, 0660));
if (fd < 0) {
SYSERROR("Failed to open log file \"%s\"", name);
return -1;
Expand Down

0 comments on commit 2d38bc8

Please sign in to comment.