summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-16 02:58:05 +0100
committerLennart Poettering <lennart@poettering.net>2011-03-16 02:58:05 +0100
commit14f3c8252b4dd73bff778b5af9f872e929bd566c (patch)
treeff1e8b26a7a94e9f00497295c443fd34724fb711
parenta258bf2648fa5e3005b96203c60b9751807bacf0 (diff)
util: make touched files non-writable by default
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index eefd66e8cd..c9c88927b0 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);