summaryrefslogtreecommitdiffstats
path: root/loader2/method.c
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-07-29 17:12:20 +0000
committerPeter Jones <pjones@redhat.com>2006-07-29 17:12:20 +0000
commita9c2386be9e03ecffd4b45930046b69fc205c75b (patch)
tree204400d05f8a56777a9b592a193332766c102ffa /loader2/method.c
parent878ca1363f4ef4e46399c0347ddf4330fd988133 (diff)
downloadanaconda-a9c2386be9e03ecffd4b45930046b69fc205c75b.tar.gz
anaconda-a9c2386be9e03ecffd4b45930046b69fc205c75b.tar.xz
anaconda-a9c2386be9e03ecffd4b45930046b69fc205c75b.zip
- fix http vs ftp test
Diffstat (limited to 'loader2/method.c')
-rw-r--r--loader2/method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/loader2/method.c b/loader2/method.c
index 9f527fc94..03c5e75e9 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -698,7 +698,7 @@ void setMethodFromCmdline(char * arg, struct loaderData_s * ld) {
}
} else if (!strncmp(arg, "ftp:", 4) ||
!strncmp(arg, "http:", 5)) {
- ld->method = strcmp(arg, "ftp") ? METHOD_FTP : METHOD_HTTP;
+ ld->method = strncmp(arg, "ftp", 3) ? METHOD_HTTP : METHOD_FTP;
ld->methodData = calloc(sizeof(struct urlInstallData *), 1);
((struct urlInstallData *)ld->methodData)->url = strdup(arg);
#if !defined(__s390__) && !defined(__s390x__)