summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2007-07-05 23:03:33 +0000
committerJoris Vink <joris@cvs.openbsd.org>2007-07-05 23:03:33 +0000
commit104848780a926a6e597e8a9dd90e81ea4d6752fc (patch)
treee3d846eff073efb1866654dcaccc4768855560f2
parente4eceed90d38bae602c0fc35cb7c77e6f21de45f (diff)
fix a "Device busy" error in server mode. found by ckuethe@
-rw-r--r--usr.bin/cvs/update.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c
index 21bc35bcddb..2e3dee7de0a 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.104 2007/07/03 13:22:43 joris Exp $ */
+/* $OpenBSD: update.c,v 1.105 2007/07/05 23:03:32 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -209,6 +209,9 @@ cvs_update_leavedir(struct cvs_file *cf)
return;
}
+ if (cvs_server_active == 1 && !strcmp(cf->file_name, "."))
+ return;
+
if (fstat(cf->fd, &st) == -1)
fatal("cvs_update_leavedir: %s", strerror(errno));