diff options
author | Tharre <tharre3@gmail.com> | 2015-06-08 16:13:40 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2015-06-10 20:08:31 +0200 |
commit | 9d9429df54b098ada384fabbbf1453dea6c18d01 (patch) | |
tree | fcfcc6bc86a0a7400fa3fff19feb27e4c1a246c3 | |
parent | 9ccf44af2bf7618c8b90cdb8ecba18433b70825d (diff) | |
download | redo-9d9429df54b098ada384fabbbf1453dea6c18d01.tar.gz redo-9d9429df54b098ada384fabbbf1453dea6c18d01.tar.xz redo-9d9429df54b098ada384fabbbf1453dea6c18d01.zip |
Pass 0755 directly instead of using POSIX macros
I'm not perfectly sure if this actually violates the POSIX standard or not, but
in practice all systems seem to accept it.
-rw-r--r-- | src/build.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c index 8192ebe..19ffa0d 100644 --- a/src/build.c +++ b/src/build.c @@ -347,8 +347,7 @@ void add_dep(const char *target, const char *parent, int ident) { fatal("redo: failed to open %s", dep_path); /* no dependency record was found, so we create one */ - mode_t mode = S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH; - fd = open(dep_path, O_WRONLY | O_APPEND | O_CREAT, mode); + fd = open(dep_path, O_WRONLY | O_APPEND | O_CREAT, 0755); if (fd < 0) fatal("redo: failed to open %s", dep_path); } |