aboutsummaryrefslogtreecommitdiff
path: root/coreutils/install.c
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-09-05 14:46:07 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-09-05 14:46:07 +0000
commitc9464a15caca3837092448217ff2b5868d355605 (patch)
tree73e57d430a5828d242b78deb0a591a99f0df44a9 /coreutils/install.c
parent072a54c487731f37f2031a4de0e67c1d1531cf6c (diff)
downloadbusybox-w32-c9464a15caca3837092448217ff2b5868d355605.tar.gz
busybox-w32-c9464a15caca3837092448217ff2b5868d355605.tar.bz2
busybox-w32-c9464a15caca3837092448217ff2b5868d355605.zip
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 git-svn-id: svn://busybox.net/trunk/busybox@11332 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/install.c')
-rw-r--r--coreutils/install.c7
1 files changed, 1 insertions, 6 deletions
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)
64 int i; 64 int i;
65 65
66 bb_applet_long_options = install_long_options; 66 bb_applet_long_options = install_long_options;
67 bb_opt_complementaly = "s~d:d~s"; 67 bb_opt_complementally = "!s~d:d~s";
68 /* -c exists for backwards compatability, its needed */ 68 /* -c exists for backwards compatability, its needed */
69 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */ 69 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */
70 70
71 /* Check valid options were given */
72 if(flags & BB_GETOPT_ERROR) {
73 bb_show_usage();
74 }
75
76 /* preserve access and modification time, this is GNU behaviour, BSD only preserves modification time */ 71 /* preserve access and modification time, this is GNU behaviour, BSD only preserves modification time */
77 if (flags & INSTALL_OPT_PRESERVE_TIME) { 72 if (flags & INSTALL_OPT_PRESERVE_TIME) {
78 copy_flags |= FILEUTILS_PRESERVE_STATUS; 73 copy_flags |= FILEUTILS_PRESERVE_STATUS;