diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-09-08 20:54:36 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-09-08 20:54:36 +0000 |
commit | d1078f4d3ca2682ac90ee2bb3e361399f3be9dd8 (patch) | |
tree | 59afb88d1f9364a1ae36b7ed7b150b100b6e1804 | |
parent | 4355dbf486d79af48e1219317b9864819d158ce2 (diff) | |
download | anaconda-d1078f4d3ca2682ac90ee2bb3e361399f3be9dd8.tar.gz anaconda-d1078f4d3ca2682ac90ee2bb3e361399f3be9dd8.tar.xz anaconda-d1078f4d3ca2682ac90ee2bb3e361399f3be9dd8.zip |
fix absolute url ftp installs again.. the // is important there. (#103840)
-rw-r--r-- | loader2/urlinstall.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/loader2/urlinstall.c b/loader2/urlinstall.c index 58c793b2a..b0530145d 100644 --- a/loader2/urlinstall.c +++ b/loader2/urlinstall.c @@ -270,9 +270,10 @@ char * mountUrlImage(struct installMethod * method, /* sanitize url so we dont have problems like bug #101265 */ /* basically avoid duplicate /'s */ - for (p=finalPrefix; *p == '/'; p++); - - finalPrefix = p; + if (ui.protocol == URL_METHOD_HTTP) { + for (p=finalPrefix; *p == '/'; p++); + finalPrefix = p; + } sprintf(url, "%s://%s%s/%s", ui.protocol == URL_METHOD_FTP ? "ftp" : "http", |