diff options
author | June McEnroe <june@causal.agency> | 2018-12-25 17:00:12 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-12-25 17:00:12 -0500 |
commit | 40e8195b458e484ebc1f755fdff2745eee9935a9 (patch) | |
tree | 8876804df96b8d01cfe8d9d3040c69f74d17c8dc | |
parent | Add sample sshd_config (diff) | |
download | play-40e8195b458e484ebc1f755fdff2745eee9935a9.tar.gz play-40e8195b458e484ebc1f755fdff2745eee9935a9.zip |
Fix mode for score file create
-rw-r--r-- | play.c | 2 |
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); |