1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-31 05:41:08 +00:00
freebsd-ports/games/xconq/files/patch-ak
Steve Price 274de75e9b Update to version 7.3.3.
PR:		19702
Submitted by:	maintainer
2000-07-07 18:29:04 +00:00

21 lines
611 B
Plaintext

--- 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 = open_file(score_file_pathname(name), "a");
return fp;
}
@@ -277,7 +277,7 @@
{
fclose(fp);
/* Reset the uid back to the user who started the game. */
- setuid(getuid());
+ setgid(getgid());
}
/* Given the name of a scorefile, return a complete path to it,