Module Name:    src
Committed By:   christos
Date:           Sun Mar 20 17:31:09 UTC 2016

Modified Files:
        src/usr.sbin/makemandb: apropos-utils.c

Log Message:
PR/50460: Abhinav Upadhyay: Fix legacy apropos query to match both the name
and the one line description and delete extra args.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.sbin/makemandb/apropos-utils.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/makemandb/apropos-utils.c
diff -u src/usr.sbin/makemandb/apropos-utils.c:1.19 src/usr.sbin/makemandb/apropos-utils.c:1.20
--- src/usr.sbin/makemandb/apropos-utils.c:1.19	Thu Dec  3 16:01:50 2015
+++ src/usr.sbin/makemandb/apropos-utils.c	Sun Mar 20 13:31:09 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: apropos-utils.c,v 1.19 2015/12/03 21:01:50 christos Exp $	*/
+/*	$NetBSD: apropos-utils.c,v 1.20 2016/03/20 17:31:09 christos Exp $	*/
 /*-
  * Copyright (c) 2011 Abhinav Upadhyay <[email protected]>
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos-utils.c,v 1.19 2015/12/03 21:01:50 christos Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.20 2016/03/20 17:31:09 christos Exp $");
 
 #include <sys/queue.h>
 #include <sys/stat.h>
@@ -559,9 +559,7 @@ run_query_internal(sqlite3 *db, const ch
 		"%s"
 		"%s",
 		snippet_args[0], snippet_args[1], snippet_args[2],
-		wild,
-		section_clause ? section_clause : "",
-		snippet_args[0], snippet_args[1], snippet_args[2],
+		wild, wild,
 		section_clause ? section_clause : "",
 		limit_clause ? limit_clause : "");
 		free(wild);

Reply via email to