diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-16 02:58:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-16 02:58:05 +0100 |
commit | 14f3c8252b4dd73bff778b5af9f872e929bd566c (patch) | |
tree | ff1e8b26a7a94e9f00497295c443fd34724fb711 /src/util.c | |
parent | a258bf2648fa5e3005b96203c60b9751807bacf0 (diff) |
util: make touched files non-writable by default
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 2 |
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); |