summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-07-05 16:55:31 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-07-05 16:55:31 +0000
commit78199d30bb18caa693e804fc63ce8f6a2e5b52e5 (patch)
tree020683a0e886838f0159a0419a4930b2912f3581 /usr.bin
parent67aeae72a8541f0f4e07d13d1f616fd99ebd0326 (diff)
if we can't stat the file and there is no entry for it, don't fail
but assume it is a regular file and it is in unknown state. ok xsa@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/file.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c
index ff71fc1256c..5fecf74401f 100644
--- a/usr.bin/cvs/file.c
+++ b/usr.bin/cvs/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.91 2005/07/01 08:59:09 joris Exp $ */
+/* $OpenBSD: file.c,v 1.92 2005/07/05 16:55:30 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* All rights reserved.
@@ -1107,10 +1107,9 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent, struct cvs_ent *ent)
}
} else {
if (ent == NULL) {
- cvs_log(LP_ERR, "no Entry and no file for `%s'",
- CVS_FILE_NAME(cfp));
- cvs_file_free(cfp);
- return (NULL);
+ /* assume it is a file and unknown */
+ cfp->cf_cvstat = CVS_FST_UNKNOWN;
+ cfp->cf_type = DT_REG;
} else {
if (ent->ce_type == CVS_ENT_FILE)
cfp->cf_type = DT_REG;