extlinux, linux: Ignore --force in these installers syslinux-4.02-pre4
authorShao Miller <shao.miller@yrdsb.edu.on.ca>
Tue, 20 Jul 2010 03:34:04 +0000 (23:34 -0400)
committerShao Miller <shao.miller@yrdsb.edu.on.ca>
Tue, 20 Jul 2010 03:34:04 +0000 (23:34 -0400)
Previous commits described this behaviour, but did not
actually implement it. :)

Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
extlinux/main.c
linux/syslinux.c

index a541e38..002cecd 100755 (executable)
@@ -809,7 +809,7 @@ int main(int argc, char *argv[])
 {
     parse_options(argc, argv, MODE_EXTLINUX);
 
-    if (!opt.directory || opt.install_mbr || opt.activate_partition || opt.force)
+    if (!opt.directory || opt.install_mbr || opt.activate_partition)
        usage(EX_USAGE, 0);
 
     if (opt.update_only == -1) {
index 9807bdf..97b6a30 100755 (executable)
@@ -273,7 +273,7 @@ int main(int argc, char *argv[])
        subdir = "/";
     }
 
-    if (!opt.device || opt.install_mbr || opt.activate_partition || opt.force)
+    if (!opt.device || opt.install_mbr || opt.activate_partition)
        usage(EX_USAGE, MODE_SYSLINUX);
 
     /*