diff options
author | Erik Troan <ewt@redhat.com> | 2000-08-16 12:59:48 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-08-16 12:59:48 +0000 |
commit | 0acdd314b24df50324a5b0dc92a122d1f600777d (patch) | |
tree | 7863a2b38b1303f1320e56ba1469b9f4b9bb537a /loader/urls.c | |
parent | c4f1735d25a42fb2b698c7badcf4166842445585 (diff) | |
download | anaconda-0acdd314b24df50324a5b0dc92a122d1f600777d.tar.gz anaconda-0acdd314b24df50324a5b0dc92a122d1f600777d.tar.xz anaconda-0acdd314b24df50324a5b0dc92a122d1f600777d.zip |
use /., not /
Diffstat (limited to 'loader/urls.c')
-rw-r--r-- | loader/urls.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/loader/urls.c b/loader/urls.c index a7b74e9b4..e43944874 100644 --- a/loader/urls.c +++ b/loader/urls.c @@ -55,13 +55,19 @@ static const char * urlfilter(const char * u) int urlinstStartTransfer(struct iurlinfo * ui, char * filename) { char * buf; int fd; + char * finalPrefix; + + if (!strcmp(ui->prefix, "/")) + finalPrefix = "/."; + else + finalPrefix = ui->prefix; logMessage("transferring %s://%s/%s/RedHat/%s to a fd", ui->protocol == URL_METHOD_FTP ? "ftp" : "http", - ui->address, ui->prefix, filename); + ui->address, finalPrefix, filename); - buf = alloca(strlen(ui->prefix) + strlen(filename) + 20); - sprintf(buf, "%s/RedHat/%s", ui->prefix, filename); + buf = alloca(strlen(finalPrefix) + strlen(filename) + 20); + sprintf(buf, "%s/RedHat/%s", finalPrefix, filename); if (ui->protocol == URL_METHOD_FTP) { ui->ftpPort = ftpOpen(ui->address, |