Commit 14f3c825 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

util: make touched files non-writable by default

parent a258bf26
......@@ -3524,7 +3524,7 @@ int touch(const char *path) {
assert(path);
if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666)) < 0)
if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0644)) < 0)
return -errno;
close_nointr_nofail(fd);
......
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