Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/makemandb CID 1358675: Wrong variable test



details:   https://anonhg.NetBSD.org/src/rev/4a1f262efd44
branches:  trunk
changeset: 344858:4a1f262efd44
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 24 18:11:43 2016 +0000

description:
CID 1358675: Wrong variable test

diffstat:

 usr.sbin/makemandb/apropos-utils.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ac17d1a1a2c5 -r 4a1f262efd44 usr.sbin/makemandb/apropos-utils.c
--- a/usr.sbin/makemandb/apropos-utils.c        Sun Apr 24 18:08:40 2016 +0000
+++ b/usr.sbin/makemandb/apropos-utils.c        Sun Apr 24 18:11:43 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: apropos-utils.c,v 1.24 2016/04/13 11:48:29 christos Exp $      */
+/*     $NetBSD: apropos-utils.c,v 1.25 2016/04/24 18:11:43 christos Exp $      */
 /*-
  * Copyright (c) 2011 Abhinav Upadhyay <er.abhinav.upadhyay%gmail.com@localhost>
  * All rights reserved.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: apropos-utils.c,v 1.24 2016/04/13 11:48:29 christos Exp $");
+__RCSID("$NetBSD: apropos-utils.c,v 1.25 2016/04/24 18:11:43 christos Exp $");
 
 #include <sys/queue.h>
 #include <sys/stat.h>
@@ -336,7 +336,7 @@
                 * to read/write the files
                 */
                int access_mode = R_OK;
-               switch (access_mode) {
+               switch (db_flag) {
                case MANDB_CREATE:
                case MANDB_WRITE:
                        access_mode |= W_OK;



Home | Main Index | Thread Index | Old Index