summaryrefslogtreecommitdiffstats
path: root/docs/net_object_class.fig
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2019-03-08 15:48:03 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2019-03-08 19:46:35 +0100
commit1c27b172a5fb9673cc47fd91cb8fdc2529a9312d (patch)
treeb65657062620b53caae1d172dccb6c3576f30319 /docs/net_object_class.fig
parent9845fed11b7a0478e66588b1821a672663236a2b (diff)
downloaddrakx-1c27b172a5fb9673cc47fd91cb8fdc2529a9312d.tar
drakx-1c27b172a5fb9673cc47fd91cb8fdc2529a9312d.tar.gz
drakx-1c27b172a5fb9673cc47fd91cb8fdc2529a9312d.tar.bz2
drakx-1c27b172a5fb9673cc47fd91cb8fdc2529a9312d.tar.xz
drakx-1c27b172a5fb9673cc47fd91cb8fdc2529a9312d.zip
sync with kernel 5.0
Note that we did NOT sync with 4.20
Diffstat (limited to 'docs/net_object_class.fig')
0 files changed, 0 insertions, 0 deletions
43db4dd5fd2d9f'>mdk-stage1/network.c
+++ b/mdk-stage1/network.c
@@ -761,7 +761,7 @@ enum return_type http_prepare(void)
do {
char location_full[500];
- int fd;
+ int fd, size;
results = ask_from_entries_auto("Please enter the name or IP address of the HTTP server, "
"and the directory containing the " DISTRIB_NAME " Distribution.",
@@ -774,7 +774,7 @@ enum return_type http_prepare(void)
log_message("HTTP: trying to retrieve %s", location_full);
- fd = http_download_file(answers[0], location_full);
+ fd = http_download_file(answers[0], location_full, &size);
if (fd < 0) {
log_message("HTTP: error %d", fd);
if (fd == FTPERR_FAILED_CONNECT)
@@ -784,8 +784,10 @@ enum return_type http_prepare(void)
results = RETURN_BACK;
continue;
}
+
+ log_message("HTTP: size of download %d bytes", size);
- results = load_ramdisk_fd(fd, 0);
+ results = load_ramdisk_fd(fd, size);
method_name = strdup("http");
sprintf(location_full, "http://%s/%s", answers[0], answers[1]);