svn commit: r365458 - head/usr.bin/sort

Gordon Bergling gbe at FreeBSD.org
Tue Sep 8 15:01:50 UTC 2020


Author: gbe (doc committer)
Date: Tue Sep  8 15:01:49 2020
New Revision: 365458
URL: https://svnweb.freebsd.org/changeset/base/365458

Log:
  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

Modified:
  head/usr.bin/sort/file.c

Modified: head/usr.bin/sort/file.c
==============================================================================
--- head/usr.bin/sort/file.c	Tue Sep  8 14:54:10 2020	(r365457)
+++ head/usr.bin/sort/file.c	Tue Sep  8 15:01:49 2020	(r365458)
@@ -1236,7 +1236,7 @@ sort_list_to_file(struct sort_list *list, const char *
 {
 	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;


More information about the svn-src-head mailing list