From 2d955e4199d48b4e1ce82efb53f56667593d669d Mon Sep 17 00:00:00 2001 From: Gordon Bergling Date: Tue, 8 Sep 2020 15:01:49 +0000 Subject: [PATCH] sort(1): Remove duplicate option check Reviewed by: lwhsu, emaste Approved by: emaste Obtained from: DragonFlyBSD MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D23892 --- usr.bin/sort/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/sort/file.c b/usr.bin/sort/file.c index 58a97826916e..b6b9d934e0ef 100644 --- a/usr.bin/sort/file.c +++ b/usr.bin/sort/file.c @@ -1236,7 +1236,7 @@ sort_list_to_file(struct sort_list *list, const char *outfile) { struct sort_mods *sm = &(keys[0].sm); - if (!(sm->Mflag) && !(sm->Rflag) && !(sm->Vflag) && !(sm->Vflag) && + if (!(sm->Mflag) && !(sm->Rflag) && !(sm->Vflag) && !(sm->gflag) && !(sm->hflag) && !(sm->nflag)) { if ((sort_opts_vals.sort_method == SORT_DEFAULT) && byte_sort) sort_opts_vals.sort_method = SORT_RADIXSORT;