aboutsummaryrefslogtreecommitdiffstats
path: root/community/paris-traceroute/clean-errno.patch
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2020-04-07 17:27:15 +0000
committerAriadne Conill <ariadne@dereferenced.org>2020-04-07 17:27:15 +0000
commit7a4ecefd18e57917b1ac560019f391aa8e1b4451 (patch)
treefba908cd692c6c7c0cc77a6bc5b6d09c6d5f87d2 /community/paris-traceroute/clean-errno.patch
parent1ea9863cba8eb7ad2211ade1438cec617b6831ef (diff)
downloadaports-7a4ecefd18e57917b1ac560019f391aa8e1b4451.tar.gz
aports-7a4ecefd18e57917b1ac560019f391aa8e1b4451.tar.bz2
aports-7a4ecefd18e57917b1ac560019f391aa8e1b4451.tar.xz
community/paris-traceroute: move from testing
Diffstat (limited to 'community/paris-traceroute/clean-errno.patch')
-rw-r--r--community/paris-traceroute/clean-errno.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/community/paris-traceroute/clean-errno.patch b/community/paris-traceroute/clean-errno.patch
new file mode 100644
index 0000000000..c2bd94e0f0
--- /dev/null
+++ b/community/paris-traceroute/clean-errno.patch
@@ -0,0 +1,23 @@
+Hack to workaround buggy error handling code.
+
+Upstream-status: Not submitted
+--- libparistraceroute-0.93.orig/paris-traceroute/paris-traceroute.c
++++ libparistraceroute-0.93/paris-traceroute/paris-traceroute.c
+@@ -453,6 +453,7 @@
+ goto ERR_PT_LOOP;
+ }
+ exit_code = EXIT_SUCCESS;
++ errno = 0;
+
+ // Leave the program
+ ERR_PT_LOOP:
+--- libparistraceroute-0.93.orig/ping/ping.c
++++ libparistraceroute-0.93/ping/ping.c
+@@ -500,6 +500,7 @@
+ }
+
+ exit_code = EXIT_SUCCESS;
++ errno = 0;
+
+ // Leave the program
+ ERR_PT_LOOP: