On Sep 13 15:27:27, t...@math.ethz.ch wrote:
> perror(3) only prints the error message; you also need to exit(3)
> explicitly:

Right; sorry.
Another try below.

        Jan


Index: Makefile
===================================================================
RCS file: /cvs/ports/audio/gsm/Makefile,v
retrieving revision 1.45
diff -u -p -r1.45 Makefile
--- Makefile    13 Sep 2016 11:33:28 -0000      1.45
+++ Makefile    13 Sep 2016 13:35:46 -0000
@@ -3,6 +3,7 @@
 COMMENT=       GSM audio codec library and converter
 
 DISTNAME=      gsm-1.0.15
+REVISION=      0
 WRKDIST=       ${WRKDIR}/gsm-1.0-pl15
 
 SHARED_LIBS=   gsm     1.0
Index: patches/patch-src_toast_c
===================================================================
RCS file: patches/patch-src_toast_c
diff -N patches/patch-src_toast_c
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_toast_c   13 Sep 2016 13:35:46 -0000
@@ -0,0 +1,15 @@
+$OpenBSD$
+--- src/toast.c.orig   Wed Apr 26 21:14:26 2006
++++ src/toast.c        Tue Sep 13 15:35:24 2016
+@@ -756,6 +756,11 @@ int main P2((ac, av), int ac, char **av)
+       extern int      optind;
+       extern char     * optarg;
+ 
++      if (pledge("stdio rpath wpath cpath fattr", NULL) == -1) {
++              perror("pledge");
++              exit(1);
++      }
++
+       parse_argv0(*av);
+ 
+       while ((opt = getopt(ac, av, "fcdpvhuaslVFC:")) != EOF) switch (opt) {

Reply via email to