30 lines
793 B
Diff
30 lines
793 B
Diff
|
|
From e022805f1d908cd9da8701db99a8e8ffd97c5519 Mon Sep 17 00:00:00 2001
|
||
|
|
From: Zdenek Kabelac <zkabelac@redhat.com>
|
||
|
|
Date: Tue, 4 Jul 2023 22:46:50 +0200
|
||
|
|
Subject: [PATCH] pool: do not pass empty string in callback
|
||
|
|
|
||
|
|
When preparing cmdline to executing dmpd tool, avoid adding
|
||
|
|
empty string ("") on such line.
|
||
|
|
|
||
|
|
---
|
||
|
|
lib/activate/dev_manager.c | 3 ++-
|
||
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c
|
||
|
|
index 07d5873..469d71f 100644
|
||
|
|
--- a/lib/activate/dev_manager.c
|
||
|
|
+++ b/lib/activate/dev_manager.c
|
||
|
|
@@ -2529,7 +2529,8 @@ static int _pool_callback(struct dm_tree_node *node,
|
||
|
|
data->global);
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
- argv[++args] = cv->v.str;
|
||
|
|
+ if (cv->v.str[0])
|
||
|
|
+ argv[++args] = cv->v.str;
|
||
|
|
}
|
||
|
|
|
||
|
|
if (args == 16) {
|
||
|
|
--
|
||
|
|
2.27.0
|
||
|
|
|