summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoris <joris@openbsd.org>2007-07-05 23:03:32 +0000
committerjoris <joris@openbsd.org>2007-07-05 23:03:32 +0000
commit2832e534164ffb5807989f6339eedf161b52b032 (patch)
treedb8eed0ffbcff0a18d67fb3e04f2d38184e539dd
parentReport actual faulting address (if we can) instead of the mmu tag word for (diff)
downloadwireguard-openbsd-2832e534164ffb5807989f6339eedf161b52b032.tar.xz
wireguard-openbsd-2832e534164ffb5807989f6339eedf161b52b032.zip
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));