libreport/0006-if-OSRelease-environ-is-empty-load-OSRelease-from-pr.patch

28 lines
1.1 KiB
Diff

From 7e9ef41bcb10d13d550d6f983c9872d9c1fe19d5 Mon Sep 17 00:00:00 2001
From: Nikola Pajkovsky <npajkovs@redhat.com>
Date: Wed, 7 Dec 2011 14:53:04 +0100
Subject: [PATCH 6/6] if OSRelease environ is empty, load OSRelease from
problem-dir
Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
---
src/plugins/reporter-bugzilla.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c
index 9bdadba..001cbd9 100644
--- a/src/plugins/reporter-bugzilla.c
+++ b/src/plugins/reporter-bugzilla.c
@@ -265,7 +265,7 @@ int main(int argc, char **argv)
const char *duphash = get_problem_item_content_or_NULL(problem_data, FILENAME_DUPHASH);
//COMPAT, remove after 2.1 release
if (!duphash) duphash = get_problem_item_content_or_die(problem_data, "global_uuid");
- if (!release) /* if not overridden... */
+ if (!release || !*release) /* if not overridden or empty... */
{
release = get_problem_item_content_or_NULL(problem_data, FILENAME_OS_RELEASE);
//COMPAT, remove in abrt-2.1
--
1.7.7.3