summaryrefslogtreecommitdiff
path: root/games/xconq/files/patch-ak
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>2000-07-07 18:29:04 +0000
committerSteve Price <steve@FreeBSD.org>2000-07-07 18:29:04 +0000
commit274de75e9b7fa3d5d612ece4f9f2c91b44a513b9 (patch)
tree043009234793f452900daf1afd9360743904cc47 /games/xconq/files/patch-ak
parentUpdate to version 0.4.1. (diff)
Update to version 7.3.3.
PR: 19702 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=30313
Diffstat (limited to 'games/xconq/files/patch-ak')
-rw-r--r--games/xconq/files/patch-ak12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/xconq/files/patch-ak b/games/xconq/files/patch-ak
index a234982d304a..24ae1b5d015a 100644
--- a/games/xconq/files/patch-ak
+++ b/games/xconq/files/patch-ak
@@ -1,15 +1,15 @@
---- kernel/unix.c.orig Mon May 18 19:35:03 1998
-+++ kernel/unix.c Sun Apr 30 20:35:33 2000
-@@ -240,7 +240,7 @@
+--- kernel/unix.c.orig Fri Jun 9 09:52:41 2000
++++ kernel/unix.c Wed Jun 28 21:49:40 2000
+@@ -267,7 +267,7 @@
/* The scorefile is only writable by the owner of the Xconq
executable, but we normally run as the user, so switch over
before writing. */
- setuid(games_uid);
+ setgid(games_uid);
- fp = fopen(score_file_pathname(name), "a");
+ fp = open_file(score_file_pathname(name), "a");
return fp;
}
-@@ -251,7 +251,7 @@
+@@ -277,7 +277,7 @@
{
fclose(fp);
/* Reset the uid back to the user who started the game. */
@@ -17,4 +17,4 @@
+ setgid(getgid());
}
- static char *scorenamebuf;
+ /* Given the name of a scorefile, return a complete path to it,