diff --git a/textproc/par/Makefile b/textproc/par/Makefile index 5eaea70a9515..b12e9cd59f24 100644 --- a/textproc/par/Makefile +++ b/textproc/par/Makefile @@ -1,26 +1,26 @@ PORTNAME= par PORTVERSION= 1.53.0 -PORTREVISION= 2 +PORTREVISION= 3 PKGNAMESUFFIX= _format CATEGORIES= textproc MASTER_SITES= http://www.nicemice.net/par/ DISTNAME= Par-${PORTVERSION} MAINTAINER= markm@FreeBSD.org COMMENT= Paragraph reformatter for email WWW= http://www.nicemice.net/par/ CONFLICTS= quake-par ALL_TARGET= # PLIST_FILES= bin/par \ share/man/man1/par.1.gz do-configure: (cd ${WRKSRC}; ${CP} protoMakefile Makefile) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/par ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/par.1 ${STAGEDIR}${PREFIX}/share/man/man1 .include diff --git a/textproc/par/files/patch-par.c b/textproc/par/files/patch-par.c new file mode 100644 index 000000000000..8e3f237a3181 --- /dev/null +++ b/textproc/par/files/patch-par.c @@ -0,0 +1,24 @@ +--- par.c.orig 2025-01-24 19:16:10 UTC ++++ par.c +@@ -21,6 +21,9 @@ This is ANSI C code (C89). + #include + #include + ++#include ++#include ++ + #undef NULL + #define NULL ((void *) 0) + +@@ -724,6 +727,11 @@ int main(int argc, const char * const *argv) + errmsg_t errmsg = { '\0' }; + lineprop *props = NULL, *firstprop, *nextprop; + FILE *errout; ++ ++ if (cap_enter() == -1 && errno != ENOSYS) { ++ strcpy(errmsg, "unable to enter sandbox\n"); ++ goto parcleanup; ++ } + + /* Set the current locale from the environment: */ +