diff options
author | Kris Kennaway <kris@FreeBSD.org> | 2000-05-07 02:14:29 +0000 |
---|---|---|
committer | Kris Kennaway <kris@FreeBSD.org> | 2000-05-07 02:14:29 +0000 |
commit | 3c024e8418d3b7d283fb6c79305ed981b515ca22 (patch) | |
tree | fbe09a3cf8c0561756378df7b825a40cba2c8fbd /games/xconq/files/patch-ak | |
parent | Move the @unexec install-info before the info files; add @exec install-info (diff) |
Make this port setgid, not setuid.
Reviewed by: maintainer
Notes
Notes:
svn path=/head/; revision=28325
Diffstat (limited to '')
-rw-r--r-- | games/xconq/files/patch-ak | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/xconq/files/patch-ak b/games/xconq/files/patch-ak new file mode 100644 index 000000000000..a234982d304a --- /dev/null +++ b/games/xconq/files/patch-ak @@ -0,0 +1,20 @@ +--- 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; |