aboutsummaryrefslogtreecommitdiff
path: root/mailsplit.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-01 11:58:43 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-01 11:58:43 -0700
commitf8d839ad992d92e1e31d7a557c198371d1fb7692 (patch)
tree18425275f360765ee15285c2be48f46a52d68abc /mailsplit.c
parent1fea629f794cda57cc161979dab903ec7460cc7c (diff)
downloadgit-f8d839ad992d92e1e31d7a557c198371d1fb7692.tar.gz
git-f8d839ad992d92e1e31d7a557c198371d1fb7692.tar.xz
Honor user's umask.
Fix the last two holdouts that forced mode bits stricter than the user's umask. Noticed by Wolfgang Denk and fixed by Linus. [jc: applied the same fix to mailsplit just for the sake of consistency.] Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailsplit.c')
-rw-r--r--mailsplit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mailsplit.c b/mailsplit.c
index a3238c20d..7afea1aac 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);