Index: Makefile =================================================================== --- Makefile (revision 455546) +++ Makefile (working copy) @@ -30,6 +30,7 @@ .if !exists(/usr/include/jail.h) EXTRA_PATCHES= ${FILESDIR}/extra-patch-docs_pkg.8 .endif +EXTRA_PATCHES= ${FILESDIR}/0001-Explicitly-return-a-failed-value-if-the-command-exec.patch .include Index: files/0001-Explicitly-return-a-failed-value-if-the-command-exec.patch =================================================================== --- files/0001-Explicitly-return-a-failed-value-if-the-command-exec.patch (nonexistent) +++ files/0001-Explicitly-return-a-failed-value-if-the-command-exec.patch (working copy) @@ -0,0 +1,26 @@ +From ad1b669fdf7f685e255e979f4fd9b8a0be7dad5f Mon Sep 17 00:00:00 2001 +From: Baptiste Daroussin +Date: Mon, 4 Dec 2017 23:37:42 +0100 +Subject: [PATCH] Explicitly return a failed value if the command execution + failed + +--- + src/version.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/version.c b/src/version.c +index d265776b..7dafda3e 100644 +--- a/src/version.c ++++ b/src/version.c +@@ -601,6 +601,8 @@ exec_buf(UT_string *res, char **argv) { + if (errno != EINTR) + return (-1); + } ++ if (WEXITSTATUS(pstat) != 0) ++ return (-1); + + return (utstring_len(res)); + } +-- +2.15.1 + Property changes on: files/0001-Explicitly-return-a-failed-value-if-the-command-exec.patch ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property