mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-29 14:40:25 +00:00
Check valid options were given
This commit is contained in:
parent
711bb92d7c
commit
654a99b691
@ -54,8 +54,14 @@ extern int install_main(int argc, char **argv)
|
||||
int i;
|
||||
|
||||
/* -c exists for backwards compatability, its needed */
|
||||
bb_opt_complementaly = "s~d:d~s";
|
||||
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 & 0x80000000UL) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user