From 064b36baf1da53a709d1598209b025fcd4494d27 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 9 Jun 2010 17:20:10 -0700 Subject: syslinux: don't break -o just yet; print warning and resume -o has been supported for a very long time; recommend using -t instead, but for now proceed with an error message. Signed-off-by: H. Peter Anvin --- linux/syslinux.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'linux') diff --git a/linux/syslinux.c b/linux/syslinux.c index 1194fbb3..bd3c555c 100644 --- a/linux/syslinux.c +++ b/linux/syslinux.c @@ -286,12 +286,12 @@ int main(int argc, char *argv[]) mypid = getpid(); umask(077); - parse_options(argc, argv, 1); + parse_options(argc, argv, MODE_SYSLINUX); subdir = opt.directory; if (!opt.device) - usage(EX_USAGE, 1); + usage(EX_USAGE, MODE_SYSLINUX); /* * First make sure we can open the device at all, and that we have @@ -400,7 +400,7 @@ int main(int argc, char *argv[]) rmdir(mntpath); exit(0); } else - usage(EX_USAGE, 0); + usage(EX_USAGE, MODE_SYSLINUX); } /* Read a pre-existing ADV, if already installed */ -- cgit v1.2.1