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