diff options
author | jmz <jmz@FreeBSD.org> | 1994-11-21 10:22:04 +0800 |
---|---|---|
committer | jmz <jmz@FreeBSD.org> | 1994-11-21 10:22:04 +0800 |
commit | c4821658bc84af63189bde53de4a6e436e0f5a1d (patch) | |
tree | a43a4fa3dad5f6e63b0ac4d52d9c31b7d7825190 /games/jetpack/files | |
parent | 1f9013b0011236b9291ca5c11c977a633705ce79 (diff) | |
download | freebsd-ports-gnome-c4821658bc84af63189bde53de4a6e436e0f5a1d.tar.gz freebsd-ports-gnome-c4821658bc84af63189bde53de4a6e436e0f5a1d.tar.zst freebsd-ports-gnome-c4821658bc84af63189bde53de4a6e436e0f5a1d.zip |
Use mode 644 for score file
Diffstat (limited to 'games/jetpack/files')
-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 000000000000..3f0e4f3351c6 --- /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) { |