diff options
| author | christos <christos@NetBSD.org> | 2016-04-24 18:11:43 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2016-04-24 18:11:43 +0000 |
| commit | e8dfd70996eb9111386dabbff4a2c0eccc83ec5e (patch) | |
| tree | db1aaf2a486dec3754e0a2208c4cb3d8a886892b /usr.sbin/makemandb | |
| parent | acf22190767acddd2f8ee1b5f24ed3f1e8412f3c (diff) | |
CID 1358675: Wrong variable test
Diffstat (limited to 'usr.sbin/makemandb')
| -rw-r--r-- | usr.sbin/makemandb/apropos-utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/makemandb/apropos-utils.c b/usr.sbin/makemandb/apropos-utils.c index 188a7f0a574..46b97cf2171 100644 --- a/usr.sbin/makemandb/apropos-utils.c +++ b/usr.sbin/makemandb/apropos-utils.c @@ -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> * 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 char *manconf) * 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; |
