Blame SOURCES/0095-upload-don-t-ask-for-password-if-the-env-var-is-empt.patch

4b6aa8
From 4827adfe8b6b6c8583d3115f7244ac3b8b87d609 Mon Sep 17 00:00:00 2001
4b6aa8
From: Jakub Filak <jfilak@redhat.com>
4b6aa8
Date: Wed, 8 Oct 2014 12:26:29 +0200
4b6aa8
Subject: [LIBREPORT PATCH 95/97] upload: don't ask for password if the env var
4b6aa8
 is empty string
4b6aa8
4b6aa8
Related to rhbz#1066486
4b6aa8
4b6aa8
Signed-off-by: Jakub Filak <jfilak@redhat.com>
4b6aa8
---
4b6aa8
 src/plugins/reporter-upload.c | 2 +-
4b6aa8
 1 file changed, 1 insertion(+), 1 deletion(-)
4b6aa8
4b6aa8
diff --git a/src/plugins/reporter-upload.c b/src/plugins/reporter-upload.c
4b6aa8
index f934953..84c827b 100644
4b6aa8
--- a/src/plugins/reporter-upload.c
4b6aa8
+++ b/src/plugins/reporter-upload.c
4b6aa8
@@ -156,7 +156,7 @@ static int create_and_upload_archive(
4b6aa8
             /* Load Password only if Username is configured, it doesn't make */
4b6aa8
             /* much sense to load Password without Username. */
4b6aa8
             state->password = getenv("Upload_Password");
4b6aa8
-            if (state->password == NULL && state->password[0] == '\0')
4b6aa8
+            if (state->password == NULL)
4b6aa8
             {
4b6aa8
                 /* Be permissive and nice, ask only once and don't check */
4b6aa8
                 /* the result. User can dismiss this prompt but the upload */
4b6aa8
-- 
4b6aa8
1.8.3.1
4b6aa8