cp: fix option handling in non-longopt config
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 20:25:23 +0000 (21:25 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 11 Feb 2018 20:25:23 +0000 (21:25 +0100)
commit7f441403cbcb6cce864bae66e1fc7bb626954e04
treecb85ee7b6ad064bb3ba59d8f7292be6a925c71d9
parentb5257a670196d3fee6b1307adce62c68bb3eb4fc
cp: fix option handling in non-longopt config

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.

Patch by Sebastian Gottschall <s.gottschall@dd-wrt.com>

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/cp.c