aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
diff options
context:
space:
mode:
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 {