diff options
author | sf <sf@FreeBSD.org> | 2001-06-14 22:31:50 +0800 |
---|---|---|
committer | sf <sf@FreeBSD.org> | 2001-06-14 22:31:50 +0800 |
commit | 8aaf0520ecb0ba85ba0ccd91b0919c4e9dc0a245 (patch) | |
tree | 8f2ef58cb4eab1571702c31bab2aa6952fa45311 /games | |
parent | acc808691f895cfc19edbeeff87bfeddbbd8ecc0 (diff) | |
download | freebsd-ports-gnome-8aaf0520ecb0ba85ba0ccd91b0919c4e9dc0a245.tar.gz freebsd-ports-gnome-8aaf0520ecb0ba85ba0ccd91b0919c4e9dc0a245.tar.zst freebsd-ports-gnome-8aaf0520ecb0ba85ba0ccd91b0919c4e9dc0a245.zip |
setregid before gtk_init to pass setgid binary check.
Diffstat (limited to 'games')
-rw-r--r-- | games/nethack-gtk/files/patch-gtk | 10 | ||||
-rw-r--r-- | games/nethack32-gtk/files/patch-gtk | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/games/nethack-gtk/files/patch-gtk b/games/nethack-gtk/files/patch-gtk new file mode 100644 index 000000000000..c54127fa947d --- /dev/null +++ b/games/nethack-gtk/files/patch-gtk @@ -0,0 +1,10 @@ +--- win/gtk/gtk.c.orig Thu Jun 14 23:10:35 2001 ++++ win/gtk/gtk.c Thu Jun 14 23:12:03 2001 +@@ -742,6 +742,7 @@ + gtk_set_locale(); + nh_rc(); + ++ setregid(getegid(), -1); + gtk_init(argc, &argv); + /* + creat credit widget and show diff --git a/games/nethack32-gtk/files/patch-gtk b/games/nethack32-gtk/files/patch-gtk new file mode 100644 index 000000000000..c54127fa947d --- /dev/null +++ b/games/nethack32-gtk/files/patch-gtk @@ -0,0 +1,10 @@ +--- win/gtk/gtk.c.orig Thu Jun 14 23:10:35 2001 ++++ win/gtk/gtk.c Thu Jun 14 23:12:03 2001 +@@ -742,6 +742,7 @@ + gtk_set_locale(); + nh_rc(); + ++ setregid(getegid(), -1); + gtk_init(argc, &argv); + /* + creat credit widget and show |