aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2015-06-08 16:13:40 +0200
committerTharre <tharre3@gmail.com>2015-06-10 20:08:31 +0200
commit9d9429df54b098ada384fabbbf1453dea6c18d01 (patch)
treefcfcc6bc86a0a7400fa3fff19feb27e4c1a246c3 /src
parent9ccf44af2bf7618c8b90cdb8ecba18433b70825d (diff)
downloadredo-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.
Diffstat (limited to 'src')
-rw-r--r--src/build.c3
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);
}