doczkal / rpms / abrt

Forked from rpms/abrt 4 years ago
Clone

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

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