aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lttng-tools/0002-Fix-snapshot-del-output-with-name-on-musl.patch
blob: b5cc7ec92001636ccb79820a58173355065c8a31 (plain)
1
2
3
4
5
6
7
8
9
10
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 {