summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/cvs/update.c')
-rw-r--r--usr.bin/cvs/update.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 29f3d589405..e84aebfa696 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.85 2007/01/13 15:45:59 joris Exp $ */
+/* $OpenBSD: update.c,v 1.86 2007/01/17 17:54:50 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -185,6 +185,11 @@ cvs_update_leavedir(struct cvs_file *cf)
cvs_log(LP_TRACE, "cvs_update_leavedir(%s)", cf->file_path);
+ if (cvs_server_active == 1) {
+ cvs_rmdir(cf->file_path);
+ return;
+ }
+
if (cvs_cmdop == CVS_OP_EXPORT) {
export = xmalloc(MAXPATHLEN);
if (cvs_path_cat(cf->file_path, CVS_PATH_CVSDIR, export,