Module Name:    src
Committed By:   wiz
Date:           Sat Aug 11 21:07:13 UTC 2012

Modified Files:
        src/usr.sbin/makemandb: makemandb.c

Log Message:
Bug fix for PR 46733:
 > makemandb always reports the same number for "Total Number of new or
 > updated pages enountered" and "Total number of (hard or symbolic)
 > links found".

Patch from Abhinav Upadhyay.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/usr.sbin/makemandb/makemandb.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/makemandb.c
diff -u src/usr.sbin/makemandb/makemandb.c:1.10 src/usr.sbin/makemandb/makemandb.c:1.11
--- src/usr.sbin/makemandb/makemandb.c:1.10	Sun Jul  8 23:18:23 2012
+++ src/usr.sbin/makemandb/makemandb.c	Sat Aug 11 21:07:13 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: makemandb.c,v 1.10 2012/07/08 23:18:23 uwe Exp $	*/
+/*	$NetBSD: makemandb.c,v 1.11 2012/08/11 21:07:13 wiz Exp $	*/
 /*
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadh...@gmail.com>
  * Copyright (c) 2011 Kristaps Dzonsons <krist...@bsd.lv>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: makemandb.c,v 1.10 2012/07/08 23:18:23 uwe Exp $");
+__RCSID("$NetBSD: makemandb.c,v 1.11 2012/08/11 21:07:13 wiz Exp $");
 
 #include <sys/stat.h>
 #include <sys/types.h>
@@ -764,12 +764,12 @@ update_db(sqlite3 *db, struct mparse *mp
 	
 	if (mflags.verbosity) {
 		printf("Total Number of new or updated pages encountered = %d\n"
+			"Total number of (hard or symbolic) links found = %d\n"
 			"Total number of pages that were successfully"
 			" indexed/updated = %d\n"
-			"Total number of (hard or symbolic) links found = %d\n"
 			"Total number of pages that could not be indexed"
 			" due to errors = %d\n",
-			total_count, new_count, link_count, err_count);
+			total_count - link_count, link_count, new_count, err_count);
 	}
 
 	if (mflags.recreate)

Reply via email to