# diff -Nru v20181022 v20181022.test diff -Nru v20181022/devel/leatherman/Makefile v20181022.test/devel/leatherman/Makefile --- v20181022/devel/leatherman/Makefile 2018-10-22 06:13:53.732821000 -0400 +++ v20181022.test/devel/leatherman/Makefile 2018-10-22 13:11:22.027123000 -0400 @@ -2,6 +2,7 @@ PORTNAME= leatherman PORTVERSION= 1.5.1 +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= puppet@FreeBSD.org diff -Nru v20181022/devel/leatherman/files/patch-execution_src_posix_execution.cc v20181022.test/devel/leatherman/files/patch-execution_src_posix_execution.cc --- v20181022/devel/leatherman/files/patch-execution_src_posix_execution.cc 1969-12-31 19:00:00.000000000 -0500 +++ v20181022.test/devel/leatherman/files/patch-execution_src_posix_execution.c2018-10-22 12:20:45.584423000 -0400 @@ -0,0 +1,13 @@ +--- execution/src/posix/execution.cc.orig 2018-10-20 21:37:23 UTC ++++ execution/src/posix/execution.cc +@@ -314,9 +314,7 @@ namespace leatherman { namespace executi + } + + // Close all open file descriptors above stderr +- for (uint64_t i = (STDERR_FILENO + 1); i < max_fd; ++i) { +- close(i); +- } ++ closefrom(STDERR_FILENO + 1); + + // Execute the given program; this should not return if successful + execve(program, const_cast(argv), const_cast(envp));