Unverified Commit 3bcfbee1 by Christian Brauner Committed by GitHub

Merge pull request #2716 from 2xsec/tizen

log: fix too wide or inconsistent non-owner permissions
parents a8c7d037 9b681921
...@@ -488,7 +488,7 @@ static int build_dir(const char *name) ...@@ -488,7 +488,7 @@ static int build_dir(const char *name)
ret = lxc_unpriv(mkdir(n, 0755)); ret = lxc_unpriv(mkdir(n, 0755));
if (ret && errno != EEXIST) { if (ret && errno != EEXIST) {
SYSERROR("Failed to create directory %s", n); SYSERROR("Failed to create directory \"%s\"", n);
free(n); free(n);
return -1; return -1;
} }
...@@ -506,7 +506,7 @@ static int log_open(const char *name) ...@@ -506,7 +506,7 @@ static int log_open(const char *name)
int fd; int fd;
int newfd; 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) { if (fd < 0) {
SYSERROR("Failed to open log file \"%s\"", name); SYSERROR("Failed to open log file \"%s\"", name);
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment