[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: bug in cp
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2018-02-11 20:26:47
Message-ID: CAK1hOcOGjZuQNY9P4Q4f7=wei-jC1ZbfccHfAAu83pq0CfRM3g () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks.

On Sun, Feb 11, 2018 at 12:14 PM, Sebastian Gottschall
<s.gottschall@dd-wrt.com> wrote:
> 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@dd-wrt.com
> Tel.: +496251-582650 / Fax: +496251-5826565
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic