From 2dade4f18a86d05642aa6f3ef4c5b5100fd10907 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Thu, 24 Jun 2021 15:07:37 +0100 Subject: uniq: really support -z Commit 894466cc5 (uniq: support -z) added support for NUL delimited output. Unfortunately nobody told getopt32(). Signed-off-by: Ron Yorston Signed-off-by: Denys Vlasenko --- coreutils/uniq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coreutils') diff --git a/coreutils/uniq.c b/coreutils/uniq.c index ef50981..a3058ac 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]; -- cgit v1.1