aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
diff options
context:
space:
mode:
authorMichael Jeanson <mjeanson@efficios.com>2016-06-16 13:57:47 -0500
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2016-06-17 20:09:02 +0200
commitf01519d7b118fc1db8a05c3e3f064e7400c28e6e (patch)
treed3cbbeb206dc0691ee3ef8e688926ce9ad02e3f6 /testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
parent67ae53c86c51be55b751624d071d0cbe357c1c15 (diff)
downloadaports-f01519d7b118fc1db8a05c3e3f064e7400c28e6e.tar.bz2
aports-f01519d7b118fc1db8a05c3e3f064e7400c28e6e.tar.xz
testing/lttng-tools: new aport
https://lttng.org LTTng 2.0 control tools
Diffstat (limited to 'testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch')
-rw-r--r--testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch b/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
new file mode 100644
index 0000000000..b5cc7ec920
--- /dev/null
+++ b/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
@@ -0,0 +1,11 @@
+--- lttng-tools-2.8.0.orig/src/bin/lttng/commands/snapshot.c
++++ lttng-tools-2.8.0/src/bin/lttng/commands/snapshot.c
+@@ -447,7 +447,7 @@
+
+ errno = 0;
+ id = strtol(argv[1], &name, 10);
+- if (id == 0 && errno == 0) {
++ if (id == 0 && (errno == 0 || errno == EINVAL)) {
+ if (lttng_opt_mi) {
+ ret = mi_del_output(UINT32_MAX, name);
+ } else {