Module Name: src
Committed By: christos
Date: Sat Jun 20 16:19:46 UTC 2009
Modified Files:
src/usr.sbin/pwd_mkdb: pwd_mkdb.c
Log Message:
fix typo
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/pwd_mkdb/pwd_mkdb.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/pwd_mkdb/pwd_mkdb.c
diff -u src/usr.sbin/pwd_mkdb/pwd_mkdb.c:1.46 src/usr.sbin/pwd_mkdb/pwd_mkdb.c:1.47
--- src/usr.sbin/pwd_mkdb/pwd_mkdb.c:1.46 Sat Jun 20 10:25:47 2009
+++ src/usr.sbin/pwd_mkdb/pwd_mkdb.c Sat Jun 20 12:19:46 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pwd_mkdb.c,v 1.46 2009/06/20 14:25:47 christos Exp $ */
+/* $NetBSD: pwd_mkdb.c,v 1.47 2009/06/20 16:19:46 christos Exp $ */
/*
* Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@@ -91,7 +91,7 @@
Copyright (c) 1991, 1993, 1994\
The Regents of the University of California. All rights reserved.");
__SCCSID("from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94");
-__RCSID("$NetBSD: pwd_mkdb.c,v 1.46 2009/06/20 14:25:47 christos Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.47 2009/06/20 16:19:46 christos Exp $");
#endif /* not lint */
#if HAVE_NBTOOL_CONFIG_H
@@ -724,7 +724,7 @@
db = dbopen(fname, O_RDONLY, PERM_INSECURE, DB_HASH, NULL);
if (db == NULL) {
/* If we are building on a separate root, assume version 1 */
- if ((errno == EACCES || errno = ENOENT) && prefix[0])
+ if ((errno == EACCES || errno == ENOENT) && prefix[0])
return 1;
warn("Cannot open database %s", fname);
bailout();