From f94ccafd692006c1a9060257e249ba3e4685ea8d Mon Sep 17 00:00:00 2001 From: Jean-Marc Zucconi Date: Mon, 21 Nov 1994 02:22:04 +0000 Subject: Use mode 644 for score file --- games/jetpack/files/patch-af | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 games/jetpack/files/patch-af 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) { -- cgit v1.2.3