summary refs log tree commit diff
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);
> 2017-08-29Add four additional spawnsJune McEnroe 2017-08-28Add respawningJune McEnroe 2017-08-26Move license above includesJune McEnroe Why was it down there? 2017-08-26Snapshot metadataJune McEnroe 2017-08-26Add meta.c to READMEJune McEnroe 2017-08-26Use MakefileJune McEnroeoe Can't hurt, I guess? I don't expect to get anything... 2019-07-27Use braces in MakefileJune McEnroe 2019-07-08Remove NetHack from indexJune McEnroe 2019-04-08Don't install rc.kfcgi eitherJune McEnroe 2019-03-28Remove rc.kfcgiJune McEnroe I sent a better version of it to the port maintainer and it is now in the ports tree. 2019-01-16Reformat index.html with explore linkJune McEnroe 2019-01-16Return false from keydown handler in exploreJune McEnroe 2019-01-08Draw lines to tile edgeJune McEnroe 2019-01-08Factor out default pathsJune McEnroe 2019-01-08Remove incorrect default coordinatesJune McEnroe 2019-01-07Set img src when explore fragment changesJune McEnroe 2019-01-07Compress PNG data in imageJune McEnroe kcgi never enables compression for FastCGI. 2019-01-07madvise MADV_NOCORE in imageJune McEnroe 2019-01-07Add license notice to explore JavaScriptJune McEnroe 2019-01-07Add Q/Home binding in exploreJune McEnroe 2019-01-07Fix explore image URLJune McEnroe 2019-01-07Add HOME button, ssh link, AGPL notice to exploreJune McEnroe 2019-01-06Add meta viewport to exploreJune McEnroe 2019-01-06Set background and max-width in exploreJune McEnroe 2019-01-06Swallow writes after the connection is closedJune McEnroe It was not okay. 2019-01-06Handle KCGI_HUPJune McEnroe I hope it's okay that I keep writing to the fwopen stream after streamWrite returns -1. 2019-01-06Install html filesJune McEnroe