=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/client.c,v retrieving revision 1.107 retrieving revision 1.108 diff -u -r1.107 -r1.108 --- src/usr.bin/cvs/client.c 2008/02/28 20:00:56 1.107 +++ src/usr.bin/cvs/client.c 2008/02/29 21:43:57 1.108 @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.107 2008/02/28 20:00:56 joris Exp $ */ +/* $OpenBSD: client.c,v 1.108 2008/02/29 21:43:57 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink * @@ -751,6 +751,7 @@ xfree(entry); + (void)unlink(fpath); if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1) fatal("cvs_client_updated: open: %s: %s", fpath, strerror(errno)); @@ -828,6 +829,7 @@ cvs_ent_close(ent, ENT_SYNC); xfree(entry); + (void)unlink(fpath); if ((fd = open(fpath, O_CREAT | O_WRONLY | O_TRUNC)) == -1) fatal("cvs_client_merged: open: %s: %s", fpath, strerror(errno));