summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-04-18 23:56:20 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-04-18 23:56:20 +0000
commit52189410da5251c550598fb0cca9e908b2566b1a (patch)
tree0d0071c3553e3cece69eee3bc530c5a5d1ff58a5
parent770f7d375856ab88cdea4338eeab506a9da62849 (diff)
don't send an Entry reply to the server for unknown files,
fixes "foo is not (any longer) pertinent" errors
-rw-r--r--usr.bin/cvs/proto.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/proto.c b/usr.bin/cvs/proto.c
index 0dc39f940a2..a82d951373a 100644
--- a/usr.bin/cvs/proto.c
+++ b/usr.bin/cvs/proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: proto.c,v 1.47 2005/04/18 21:02:50 jfb Exp $ */
+/* $OpenBSD: proto.c,v 1.48 2005/04/18 23:56:19 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1014,6 +1014,10 @@ cvs_sendentry(struct cvsroot *root, const CVSFILE *file)
return (-1);
}
+ /* don't send Entry for unknown files */
+ if (file->cf_cvstat == CVS_FST_UNKNOWN)
+ return (0);
+
snprintf(ebuf, sizeof(ebuf), "/%s/%s///", file->cf_name,
rcsnum_tostr(file->cf_lrev, numbuf, sizeof(numbuf)));