blob: 491a115d007ed3cb38869fd48dc38b5600a4f39b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
From e7af0013dd550c72641ea841f1177d6b0af99dce Mon Sep 17 00:00:00 2001
From: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Date: Fri, 15 Apr 2016 10:02:45 +0300
Subject: [PATCH] globals.c: Use fake address as default updates' url
If a user forgets to provide its swupd server URL then
ClearLinux's default is used unconditionally which may
reult in a corrupted system.
Upstream-Status: Inappropriate [latest code doesn't use hardcoded defaults]
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
---
src/globals.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/globals.c b/src/globals.c
index 8ca3fd9..0e78f34 100644
--- a/src/globals.c
+++ b/src/globals.c
@@ -62,11 +62,11 @@ bool have_network = false; /* assume no access until proved */
#define URL_COUNT 2
char *version_server_urls[URL_COUNT] = {
NULL,
- "https://download.clearlinux.org/update",
+ "https://example.com/update",
};
char *content_server_urls[URL_COUNT] = {
NULL,
- "https://download.clearlinux.org/update",
+ "https://example.com/update",
};
char *preferred_version_url;
char *preferred_content_url;
--
2.5.0
|