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

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