Module Name: src Committed By: abhinav Date: Tue May 23 15:27:54 UTC 2017
Modified Files: src/usr.sbin/makemandb: whatis.c Log Message: Make the name comparison case insensitive. (The old whatis(1) also used to do case insensitive string comparisons). To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/makemandb/whatis.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/whatis.c diff -u src/usr.sbin/makemandb/whatis.c:1.6 src/usr.sbin/makemandb/whatis.c:1.7 --- src/usr.sbin/makemandb/whatis.c:1.6 Sun Apr 23 16:56:49 2017 +++ src/usr.sbin/makemandb/whatis.c Tue May 23 15:27:54 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: whatis.c,v 1.6 2017/04/23 16:56:49 abhinav Exp $ */ +/* $NetBSD: whatis.c,v 1.7 2017/05/23 15:27:54 abhinav Exp $ */ /*- * Copyright (c) 2012 Joerg Sonnenberger <jo...@netbsd.org> * All rights reserved. @@ -29,7 +29,7 @@ */ #include <sys/cdefs.h> -__RCSID("$NetBSD: whatis.c,v 1.6 2017/04/23 16:56:49 abhinav Exp $"); +__RCSID("$NetBSD: whatis.c,v 1.7 2017/05/23 15:27:54 abhinav Exp $"); #include <err.h> #include <stdio.h> @@ -49,7 +49,7 @@ static int whatis(sqlite3 *db, const char *cmd) { static const char sqlstr[] = "SELECT name, section, name_desc" - " FROM mandb WHERE name MATCH ? AND name=?" + " FROM mandb WHERE name MATCH ? AND name=? COLLATE NOCASE" " UNION" " SELECT b.link AS name, b.section, a.name_desc FROM mandb a" " JOIN"