mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-17 00:00:40 +00:00
3c024e8418
Reviewed by: maintainer
21 lines
570 B
Plaintext
21 lines
570 B
Plaintext
--- 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;
|