chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a258bf2
)
util: make touched files non-writable by default
author
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Mar 2011 01:58:05 +0000
(
02:58
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 16 Mar 2011 01:58:05 +0000
(
02:58
+0100)
src/util.c
patch
|
blob
|
history
diff --git
a/src/util.c
b/src/util.c
index eefd66e8cdb4b5e630213d5b4bd5b46365ae4457..c9c88927b0634c20eb5e4beee8d519cd3f03aaf1 100644
(file)
--- 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, 06
66
)) < 0)
+ if ((fd = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 06
44
)) < 0)
return -errno;
close_nointr_nofail(fd);