Control: tags 982423 + pending Hey Bernhard,
I've prepared an NMU for reprepro (versioned as 5.3.0-1.2) and uploaded it to DELAYED/7. Please feel free to tell me if I should delay it longer. Regards from Freiburg Uwe
diff -Nru reprepro-5.3.0/debian/changelog reprepro-5.3.0/debian/changelog --- reprepro-5.3.0/debian/changelog 2020-01-17 03:03:27.000000000 +0100 +++ reprepro-5.3.0/debian/changelog 2021-02-18 10:25:24.000000000 +0100 @@ -1,3 +1,10 @@ +reprepro (5.3.0-1.2) unstable; urgency=medium + + * Non-maintainer upload. + * Flush stdout and stderr before execv of an end hook (Closes: #982423) + + -- Uwe Kleine-König <uklei...@debian.org> Thu, 18 Feb 2021 10:25:24 +0100 + reprepro (5.3.0-1.1) unstable; urgency=medium * Non-maintainer upload. diff -Nru reprepro-5.3.0/debian/patches/flush-streams-before-exec-hook.patch reprepro-5.3.0/debian/patches/flush-streams-before-exec-hook.patch --- reprepro-5.3.0/debian/patches/flush-streams-before-exec-hook.patch 1970-01-01 01:00:00.000000000 +0100 +++ reprepro-5.3.0/debian/patches/flush-streams-before-exec-hook.patch 2021-02-18 10:25:24.000000000 +0100 @@ -0,0 +1,18 @@ +From: Hilko Bengen <ben...@debian.org> +Date: Wed, 10 Feb 2021 01:47:23 +0100 +Subject: Flush stdout, stderr before calling endhook +Bug-Debian: https://bugs.debian.org/982423 + +Flush stdout and stderr, otherwise output might be discarded. + +--- a/main.c ++++ b/main.c +@@ -4906,6 +4906,8 @@ + if (snprintf(exitcode, 4, "%u", ((unsigned int)status)&255U) > 3) + memcpy(exitcode, "255", 4); + sethookenvironment(causingfile, NULL, NULL, exitcode); ++ fflush(stdout); ++ fflush(stderr); + argv[0] = endhook, + (void)execv(endhook, argv); + fprintf(stderr, "Error executing '%s': %s\n", endhook, diff -Nru reprepro-5.3.0/debian/patches/series reprepro-5.3.0/debian/patches/series --- reprepro-5.3.0/debian/patches/series 2020-01-17 02:57:30.000000000 +0100 +++ reprepro-5.3.0/debian/patches/series 2021-02-18 10:25:24.000000000 +0100 @@ -1 +1,2 @@ bump-buffer-size +flush-streams-before-exec-hook.patch
signature.asc
Description: PGP signature