1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00
freebsd-ports/games/xconq/files/patch-ak

21 lines
570 B
Plaintext
Raw Normal View History

--- 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 @@
/* 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");
return fp;
}
@@ -251,7 +251,7 @@
{
fclose(fp);
/* Reset the uid back to the user who started the game. */
- setuid(getuid());
+ setgid(getgid());
}
static char *scorenamebuf;