summary refs log tree commit diff homepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--play.c2
1 files changed, 1 insertions, 1 deletions
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);