Blame SOURCES/0121-a-a-i-d-t-a-cache-fix-command-line-argument-generati.patch

8ec399
From ff67428ed1685b1d5b12e2893396d6acecf3a123 Mon Sep 17 00:00:00 2001
8ec399
From: Jakub Filak <jfilak@redhat.com>
8ec399
Date: Wed, 20 May 2015 15:22:58 +0200
8ec399
Subject: [ABRT PATCH] a-a-i-d-t-a-cache: fix command line argument generation
8ec399
8ec399
Empty string in the list of arguments for execvp causes problems (-y
8ec399
was ignored).
8ec399
8ec399
Related: #1216962
8ec399
8ec399
Signed-off-by: Jakub Filak <jfilak@redhat.com>
8ec399
---
8ec399
 src/plugins/abrt-action-install-debuginfo-to-abrt-cache.c | 3 ++-
8ec399
 1 file changed, 2 insertions(+), 1 deletion(-)
8ec399
8ec399
diff --git a/src/plugins/abrt-action-install-debuginfo-to-abrt-cache.c b/src/plugins/abrt-action-install-debuginfo-to-abrt-cache.c
8ec399
index fafb0c4..81b1486 100644
8ec399
--- a/src/plugins/abrt-action-install-debuginfo-to-abrt-cache.c
8ec399
+++ b/src/plugins/abrt-action-install-debuginfo-to-abrt-cache.c
8ec399
@@ -116,7 +116,8 @@ int main(int argc, char **argv)
8ec399
         args[i++] = EXECUTABLE;
8ec399
         args[i++] = "--ids";
8ec399
         args[i++] = (build_ids_self_fd != NULL) ? build_ids_self_fd : "-";
8ec399
-        args[i++] = verbs[g_verbose <= 3 ? g_verbose : 3];
8ec399
+        if (g_verbose > 0)
8ec399
+            args[i++] = verbs[g_verbose <= 3 ? g_verbose : 3];
8ec399
         if ((opts & OPT_y))
8ec399
             args[i++] = "-y";
8ec399
         if ((opts & OPT_e))
8ec399
-- 
8ec399
1.8.3.1
8ec399