diff options
author | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:44:28 +0000 |
---|---|---|
committer | Marcelo Araujo <araujo@FreeBSD.org> | 2013-02-04 08:44:28 +0000 |
commit | 81eefcdd20a4f2ca6b390b9e435ed9c17943708e (patch) | |
tree | ce851f568ebe1fa88d5174b3e9b0b235e16ccc0f /games/xconq/files/patch-kernel__unix.c | |
parent | Now libexttextcat and libtextcat can happily co-exist. (diff) |
- Update to version 7.5.0.0.p.0.20050612.
PR: ports/174192
Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes:
svn path=/head/; revision=311578
Diffstat (limited to 'games/xconq/files/patch-kernel__unix.c')
-rw-r--r-- | games/xconq/files/patch-kernel__unix.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/games/xconq/files/patch-kernel__unix.c b/games/xconq/files/patch-kernel__unix.c new file mode 100644 index 000000000000..2133ef12ef38 --- /dev/null +++ b/games/xconq/files/patch-kernel__unix.c @@ -0,0 +1,20 @@ +--- kernel/unix.c.orig ++++ kernel/unix.c +@@ -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, |