Hello ports,
CC: edd@ (as maintainer)

this is along the same lines of other games that need running setugid
to maintain a global score file.  games/angband has the same issue.

The patch is pretty straightforward. Tested on current. OK?

Regards

Enzo

--- Makefile.orig       Mon Nov 16 21:39:17 2026
+++ Makefile    Mon Nov 16 21:39:35 2026
@@ -6,6 +6,7 @@
 V =                    4.2.5
 DISTNAME =             Angband-${V}
 PKGNAME =              ${DISTNAME:L}
+REVISION =             1
 CATEGORIES=            games
 
 HOMEPAGE=              http://rephial.org


--- patches/patch-src_main_c.orig       Mon Nov 16 22:15:39 2026
+++ patches/patch-src_main_c    Mon Nov 16 21:55:00 2026
@@ -5,6 +7,19 @@
 Index: src/main.c
 --- src/main.c.orig
 +++ src/main.c
+@@ -37,6 +37,12 @@
+  */
+ #include <locale.h>
+ 
++#ifdef __OpenBSD__
++#include <sys/stat.h>
++/* OpenBSD: set[ug]id binary MUST say so in this var */
++mode_t _permit_setugid = S_ISGID;
++#endif
++
+ #if !defined(WINDOWS)
+ #include <langinfo.h>
+ #endif
 @@ -280,9 +286,13 @@ static void list_saves(void)
  {
        savefile_getter g = NULL;

Reply via email to