summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.c2
-rw-r--r--mailsplit.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/index.c b/index.c
index 87fc7b0..bdde65f 100644
--- a/index.c
+++ b/index.c
@@ -29,7 +29,7 @@ int hold_index_file_for_update(struct cache_file *cf, const char *path)
signal(SIGINT, remove_lock_file_on_signal);
atexit(remove_lock_file);
}
- return open(cf->lockfile, O_RDWR | O_CREAT | O_EXCL, 0600);
+ return open(cf->lockfile, O_RDWR | O_CREAT | O_EXCL, 0666);
}
int commit_index_file(struct cache_file *cf)
diff --git a/mailsplit.c b/mailsplit.c
index a3238c2..7afea1a 100644
--- a/mailsplit.c
+++ b/mailsplit.c
@@ -128,7 +128,7 @@ int main(int argc, char **argv)
unsigned long len = parse_email(map, size);
assert(len <= size);
sprintf(name, "%04d", ++nr);
- fd = open(name, O_WRONLY | O_CREAT | O_EXCL, 0600);
+ fd = open(name, O_WRONLY | O_CREAT | O_EXCL, 0666);
if (fd < 0) {
perror(name);
exit(1);