bug in cp
Sebastian Gottschall
s.gottschall at dd-wrt.com
Sun Feb 11 11:14:16 UTC 2018
the patch getopt32: remove opt_complementary
22542eca18e5807b72ddc78999f5101e33f17a53
introduced a regressed in the cp command since it removed all aliases of
arguments if long_opts is not configured.
so please take care of considering to fix this using the raw unformated
patch below
--- cp.c (revision 34899)
+++ cp.c (working copy)
@@ -98,7 +98,7 @@
"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
--
Mit freundlichen Grüssen / Regards
Sebastian Gottschall / CTO
NewMedia-NET GmbH - DD-WRT
Firmensitz: Stubenwaldallee 21a, 64625 Bensheim
Registergericht: Amtsgericht Darmstadt, HRB 25473
Geschäftsführer: Peter Steinhäuser, Christian Scheele
http://www.dd-wrt.com
email: s.gottschall at dd-wrt.com
Tel.: +496251-582650 / Fax: +496251-5826565
More information about the busybox
mailing list