summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-12-25 17:00:12 -0500
committerJune McEnroe <june@causal.agency>2018-12-25 17:00:12 -0500
commit40e8195b458e484ebc1f755fdff2745eee9935a9 (patch)
tree8876804df96b8d01cfe8d9d3040c69f74d17c8dc
parentAdd sample sshd_config (diff)
downloadplay-40e8195b458e484ebc1f755fdff2745eee9935a9.tar.gz
play-40e8195b458e484ebc1f755fdff2745eee9935a9.zip
Fix mode for score file create
-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);