diff options
author | Ron Yorston <rmy@pobox.com> | 2021-06-24 15:07:37 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-06-24 23:37:06 +0200 |
commit | 2dade4f18a86d05642aa6f3ef4c5b5100fd10907 (patch) | |
tree | 36dd23571567f6c0cdf25ac0d258245a4480f437 | |
parent | 3b267e99259191eca0865179a56429c4c441e2b2 (diff) | |
download | busybox-w32-2dade4f18a86d05642aa6f3ef4c5b5100fd10907.tar.gz busybox-w32-2dade4f18a86d05642aa6f3ef4c5b5100fd10907.tar.bz2 busybox-w32-2dade4f18a86d05642aa6f3ef4c5b5100fd10907.zip |
uniq: really support -z
Commit 894466cc5 (uniq: support -z) added support for NUL delimited
output. Unfortunately nobody told getopt32().
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | coreutils/uniq.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
64 | skip_fields = skip_chars = 0; | 64 | skip_fields = skip_chars = 0; |
65 | max_chars = INT_MAX; | 65 | max_chars = INT_MAX; |
66 | 66 | ||
67 | opt = getopt32(argv, "cduf:+s:+w:+i", &skip_fields, &skip_chars, &max_chars); | 67 | opt = getopt32(argv, "cduf:+s:+w:+iz", &skip_fields, &skip_chars, &max_chars); |
68 | argv += optind; | 68 | argv += optind; |
69 | 69 | ||
70 | input_filename = argv[0]; | 70 | input_filename = argv[0]; |