mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-27 21:50:32 +00:00
cp: fix option handling in non-longopt config
the patch getopt32: remove opt_complementary 22542eca18
introduced a regressed in the cp command since it removed all aliases of arguments
if long_opts is not configured.
Patch by Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
b5257a6701
commit
7f441403cb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user