Module Name: src
Committed By: christos
Date: Sun Apr 24 18:11:43 UTC 2016
Modified Files:
src/usr.sbin/makemandb: apropos-utils.c
Log Message:
CID 1358675: Wrong variable test
To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 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.24 src/usr.sbin/makemandb/apropos-utils.c:1.25
--- src/usr.sbin/makemandb/apropos-utils.c:1.24 Wed Apr 13 07:48:29 2016
+++ src/usr.sbin/makemandb/apropos-utils.c Sun Apr 24 14:11:43 2016
@@ -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 <[email protected]>
* 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 @@ init_db(mandb_access_mode db_flag, const
* 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;