Projects
openEuler:24.03:SP1:Everything
lvm2
_service:tar_scm:0018-do-not-pass-empty-string-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0018-do-not-pass-empty-string-in-callback.patch of Package lvm2
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
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2