=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/Attic/proto.c,v retrieving revision 1.47 retrieving revision 1.48 diff -u -r1.47 -r1.48 --- src/usr.bin/cvs/Attic/proto.c 2005/04/18 21:02:50 1.47 +++ src/usr.bin/cvs/Attic/proto.c 2005/04/18 23:56:19 1.48 @@ -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 * All rights reserved. @@ -1013,6 +1013,10 @@ cvs_log(LP_ERR, "attempt to send Entry for non-regular 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)));