Module Name: src
Committed By: christos
Date: Thu Jun 18 22:13:56 UTC 2009
Modified Files:
src/usr.sbin/pwd_mkdb: pwd_mkdb.c
Log Message:
allow overwriting the version record.
To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 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.42 src/usr.sbin/pwd_mkdb/pwd_mkdb.c:1.43
--- src/usr.sbin/pwd_mkdb/pwd_mkdb.c:1.42 Thu Jun 18 17:59:24 2009
+++ src/usr.sbin/pwd_mkdb/pwd_mkdb.c Thu Jun 18 18:13:56 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pwd_mkdb.c,v 1.42 2009/06/18 21:59:24 christos Exp $ */
+/* $NetBSD: pwd_mkdb.c,v 1.43 2009/06/18 22:13:56 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.42 2009/06/18 21:59:24 christos Exp $");
+__RCSID("$NetBSD: pwd_mkdb.c,v 1.43 2009/06/18 22:13:56 christos Exp $");
#endif /* not lint */
#if HAVE_NBTOOL_CONFIG_H
@@ -752,7 +752,7 @@
data.data = &db->wversion;
data.size = sizeof(uint32_t);
- if ((*db->db->put)(db->db, &key, &data, R_NOOVERWRITE) != 0) {
+ if ((*db->db->put)(db->db, &key, &data, 0) != 0) {
warn("Can't write VERSION record to %s", db->dbname);
bailout();
}