Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/makemandb Bug fix for PR 46733:



details:   https://anonhg.NetBSD.org/src/rev/d0dc4557d9c1
branches:  trunk
changeset: 780923:d0dc4557d9c1
user:      wiz <wiz%NetBSD.org@localhost>
date:      Sat Aug 11 21:07:13 2012 +0000

description:
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.

diffstat:

 usr.sbin/makemandb/makemandb.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 7c88e0667484 -r d0dc4557d9c1 usr.sbin/makemandb/makemandb.c
--- a/usr.sbin/makemandb/makemandb.c    Sat Aug 11 20:09:08 2012 +0000
+++ b/usr.sbin/makemandb/makemandb.c    Sat Aug 11 21:07:13 2012 +0000
@@ -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.upadhyay%gmail.com@localhost>
  * Copyright (c) 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
@@ -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 @@
        
        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)



Home | Main Index | Thread Index | Old Index