aboutsummaryrefslogtreecommitdiffstats
path: root/src/build.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.c')
-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);
}