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

List:       busybox
Subject:    Re: [PATCH] uniq: really support -z
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2021-06-24 21:39:18
Message-ID: CAK1hOcMm23Kt3s0ytA+_3mTZ38wnNsFL4g2sE+GQybGGTutLDQ () mail ! gmail ! com
[Download RAW message or body]

Ouch.
Applied, thank you!

On Thu, Jun 24, 2021 at 4:08 PM Ron Yorston <rmy@pobox.com> wrote:
>
> Commit 894466cc5 (uniq: support -z) added support for NUL delimited
> output.  Unfortunately nobody told getopt32().
>
> Signed-off-by: Ron Yorston <rmy@pobox.com>
> ---
>  coreutils/uniq.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/coreutils/uniq.c b/coreutils/uniq.c
> index ef50981ed..a3058ac07 100644
> --- a/coreutils/uniq.c
> +++ b/coreutils/uniq.c
> @@ -64,7 +64,7 @@ int uniq_main(int argc UNUSED_PARAM, char **argv)
>         skip_fields = skip_chars = 0;
>         max_chars = INT_MAX;
>
> -       opt = getopt32(argv, "cduf:+s:+w:+i", &skip_fields, &skip_chars, &max_chars);
> +       opt = getopt32(argv, "cduf:+s:+w:+iz", &skip_fields, &skip_chars, &max_chars);
>         argv += optind;
>
>         input_filename = argv[0];
> --
> 2.31.1
>
> _______________________________________________
> 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