← Commit list

7f441403c

Denys Vlasenko
Denys Vlasenko
2018-02-11
SUCCESS Duration: 144s

Subject

cp: fix option handling in non-longopt config

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/cp.c+5 -1
@@ -101,7 +101,11 @@ int cp_main(int argc, char **argv)
"parents\0" No_argument "\xfe"
);
#else
- flags = getopt32(argv, FILEUTILS_CP_OPTSTR);
+ flags = getopt32(argv, "^"
+ FILEUTILS_CP_OPTSTR
+ "\0"
+ "-2:l--s:s--l:Pd:rRd:Rd:apdR"
+ );
#endif
/* Options of cp from GNU coreutils 6.10:
* -a, --archive