diff options
author | jmz <jmz@FreeBSD.org> | 1994-11-21 02:22:04 +0000 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1994-11-21 02:22:04 +0000 |
commit | c4821658bc84af63189bde53de4a6e436e0f5a1d (patch) | |
tree | a43a4fa3dad5f6e63b0ac4d52d9c31b7d7825190 | |
parent | 1f9013b0011236b9291ca5c11c977a633705ce79 (diff) | |
download | FreeBSD-ports-c4821658bc84af63189bde53de4a6e436e0f5a1d.zip FreeBSD-ports-c4821658bc84af63189bde53de4a6e436e0f5a1d.tar.gz |
Use mode 644 for score file
-rw-r--r-- | games/jetpack/files/patch-af | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/games/jetpack/files/patch-af b/games/jetpack/files/patch-af new file mode 100644 index 0000000..3f0e4f3 --- /dev/null +++ b/games/jetpack/files/patch-af @@ -0,0 +1,19 @@ +*** scores.c~ Mon Nov 8 15:15:55 1993 +--- scores.c Sat Nov 19 22:32:31 1994 +*************** +*** 35,41 **** + numhighs = 0; + scorefd = open(SCOREPATH, O_RDWR); + if(scorefd == -1) { +! scorefd = open(SCOREPATH, O_RDWR | O_CREAT, 0444); + if(scorefd == -1) { + scorefd = open("jetpack.scores", O_RDWR); + if(scorefd == -1) { +--- 35,41 ---- + numhighs = 0; + scorefd = open(SCOREPATH, O_RDWR); + if(scorefd == -1) { +! scorefd = open(SCOREPATH, O_RDWR | O_CREAT, 0644); + if(scorefd == -1) { + scorefd = open("jetpack.scores", O_RDWR); + if(scorefd == -1) { |