This commit is contained in:
christos 2009-06-20 16:19:46 +00:00
parent 387aa49a45
commit c08a8944a8
1 changed files with 3 additions and 3 deletions

View File

@ -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. * Copyright (c) 2000, 2009 The NetBSD Foundation, Inc.
@ -91,7 +91,7 @@ __COPYRIGHT("@(#) Copyright (c) 2000, 2009\
Copyright (c) 1991, 1993, 1994\ Copyright (c) 1991, 1993, 1994\
The Regents of the University of California. All rights reserved."); The Regents of the University of California. All rights reserved.");
__SCCSID("from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94"); __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 */ #endif /* not lint */
#if HAVE_NBTOOL_CONFIG_H #if HAVE_NBTOOL_CONFIG_H
@ -724,7 +724,7 @@ getversion(const char *fname)
db = dbopen(fname, O_RDONLY, PERM_INSECURE, DB_HASH, NULL); db = dbopen(fname, O_RDONLY, PERM_INSECURE, DB_HASH, NULL);
if (db == NULL) { if (db == NULL) {
/* If we are building on a separate root, assume version 1 */ /* 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; return 1;
warn("Cannot open database %s", fname); warn("Cannot open database %s", fname);
bailout(); bailout();