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.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);