From 27421a1878847389391c1a43420baaccf57057a7 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Mon, 5 Sep 2005 14:46:07 +0000 Subject: 1) bb_opt_complementaly -> bb_opt_complementally 2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally --- coreutils/install.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'coreutils/install.c') diff --git a/coreutils/install.c b/coreutils/install.c index 345e75af0..e22dda6f9 100644 --- a/coreutils/install.c +++ b/coreutils/install.c @@ -64,15 +64,10 @@ extern int install_main(int argc, char **argv) int i; bb_applet_long_options = install_long_options; - bb_opt_complementaly = "s~d:d~s"; + bb_opt_complementally = "!s~d:d~s"; /* -c exists for backwards compatability, its needed */ flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */ - /* Check valid options were given */ - if(flags & BB_GETOPT_ERROR) { - bb_show_usage(); - } - /* preserve access and modification time, this is GNU behaviour, BSD only preserves modification time */ if (flags & INSTALL_OPT_PRESERVE_TIME) { copy_flags |= FILEUTILS_PRESERVE_STATUS; -- cgit v1.2.3