From 40e8195b458e484ebc1f755fdff2745eee9935a9 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Tue, 25 Dec 2018 17:00:12 -0500 Subject: Fix mode for score file create --- play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/play.c b/play.c index 707c6c7..61df0ba 100644 --- a/play.c +++ b/play.c @@ -37,7 +37,7 @@ static struct Score { } scores[ScoresLen]; static FILE *scoresOpen(const char *path) { - int fd = open(path, O_RDWR | O_CREAT); + int fd = open(path, O_RDWR | O_CREAT, 0644); if (fd < 0) err(EX_CANTCREAT, "%s", path); FILE *file = fdopen(fd, "r+"); if (!file) err(EX_CANTCREAT, "%s", path); -- cgit 1.4.1