diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-29 11:58:42 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-07-29 11:58:42 +0000 |
commit | 69c2cc949a2635f823d97bbeb4af2004b46b0b89 (patch) | |
tree | 418ce255f05e0919d6657ccdc9e8664d99a5db52 /usr.sbin/dhcpd | |
parent | 8c3663f13849b4d29585b2869a33d637b112d0e3 (diff) |
don't wipe lease file on startup, found & solution tested nick@
Diffstat (limited to 'usr.sbin/dhcpd')
-rw-r--r-- | usr.sbin/dhcpd/db.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/dhcpd/db.c b/usr.sbin/dhcpd/db.c index 66b546992a8..3afa66b8e0b 100644 --- a/usr.sbin/dhcpd/db.c +++ b/usr.sbin/dhcpd/db.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db.c,v 1.8 2004/07/09 16:22:02 deraadt Exp $ */ +/* $OpenBSD: db.c,v 1.9 2004/07/29 11:58:41 henning Exp $ */ /* * Persistent database management routines for DHCPD. @@ -207,7 +207,7 @@ db_startup(void) int db_fd; /* open lease file. once we dropped privs it has to stay open */ - db_fd = open(path_dhcpd_db, O_WRONLY|O_TRUNC|O_CREAT, 0664); + db_fd = open(path_dhcpd_db, O_WRONLY|O_CREAT, 0664); if (db_fd == -1) error("Can't create new lease file: %m"); if ((db_file = fdopen(db_fd, "w")) == NULL) |