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

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