← Commit list

654a99b69

Glenn L McGrath
Glenn L McGrath
2004-01-23
FAILED Duration: 63s

Subject

Check valid options were given

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/install.c+6 -0
@@ -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;