summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/update.c
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-07-23 11:19:47 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-07-23 11:19:47 +0000
commit316e7b4ce9ddeaa9df048f14eb629be01439aa55 (patch)
treef4f74e1c0f91731e6481818a3caeac96f0c80c34 /usr.bin/cvs/update.c
parent9cb789f35012b533e6bb67128d89a9154482620c (diff)
rewrite of the file code. the previous one was just
a mess and not clean. this code is much cleaner, faster, and uses less memory overall. tested by xsa@, brad@, Michael Knudsen, and myself. okay xsa@
Diffstat (limited to 'usr.bin/cvs/update.c')
-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 458ccf8133a..9fb6dd78b7e 100644
--- a/usr.bin/cvs/update.c
+++ b/usr.bin/cvs/update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: update.c,v 1.40 2005/07/21 11:42:24 xsa Exp $ */
+/* $OpenBSD: update.c,v 1.41 2005/07/23 11:19:46 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -189,6 +189,9 @@ cvs_update_remote(CVSFILE *cf, void *arg)
if (cvs_sendentry(root, cf) < 0)
return (CVS_EX_PROTO);
+ if (!(cf->cf_flags & CVS_FILE_ONDISK))
+ return (0);
+
switch (cf->cf_cvstat) {
case CVS_FST_UNKNOWN:
ret = cvs_sendreq(root, CVS_REQ_QUESTIONABLE, cf->cf_name);