aboutsummaryrefslogtreecommitdiff
path: root/coreutils/install.c
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-23 21:40:19 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2004-01-23 21:40:19 +0000
commit1a4d4d4dc4b7137a31e14da69c8f875eee77c1c4 (patch)
tree5342fb57aa65a81ffe0889bcb0760952a9d04dad /coreutils/install.c
parentbaf8b495a05861db3860891c32a416cdfc950909 (diff)
downloadbusybox-w32-1a4d4d4dc4b7137a31e14da69c8f875eee77c1c4.tar.gz
busybox-w32-1a4d4d4dc4b7137a31e14da69c8f875eee77c1c4.tar.bz2
busybox-w32-1a4d4d4dc4b7137a31e14da69c8f875eee77c1c4.zip
Check valid options were given
git-svn-id: svn://busybox.net/trunk/busybox@8337 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'coreutils/install.c')
-rw-r--r--coreutils/install.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/coreutils/install.c b/coreutils/install.c
index 3128c5bd9..84e60f934 100644
--- a/coreutils/install.c
+++ b/coreutils/install.c
@@ -54,8 +54,14 @@ extern int install_main(int argc, char **argv)
54 int i; 54 int i;
55 55
56 /* -c exists for backwards compatability, its needed */ 56 /* -c exists for backwards compatability, its needed */
57 bb_opt_complementaly = "s~d:d~s";
57 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */ 58 flags = bb_getopt_ulflags(argc, argv, "cdpsg:m:o:", &gid_str, &mode_str, &uid_str); /* 'a' must be 2nd */
58 59
60 /* Check valid options were given */
61 if(flags & 0x80000000UL) {
62 bb_show_usage();
63 }
64
59 /* preserve access and modification time, this is GNU behaviour, BSD only preserves modification time */ 65 /* preserve access and modification time, this is GNU behaviour, BSD only preserves modification time */
60 if (flags & INSTALL_OPT_PRESERVE_TIME) { 66 if (flags & INSTALL_OPT_PRESERVE_TIME) {
61 copy_flags |= FILEUTILS_PRESERVE_STATUS; 67 copy_flags |= FILEUTILS_PRESERVE_STATUS;