diff options
author | 2005-07-05 16:55:30 +0000 | |
---|---|---|
committer | 2005-07-05 16:55:30 +0000 | |
commit | 10345b18e97da8d8562351bb6598d322f47e1564 (patch) | |
tree | d5ddf9c59d81810518b581b2d85e147474159828 /usr.bin/cvs/file.c | |
parent | correct ouput to match gnu/usr.bin/cvs; more to come. (diff) | |
download | wireguard-openbsd-10345b18e97da8d8562351bb6598d322f47e1564.tar.xz wireguard-openbsd-10345b18e97da8d8562351bb6598d322f47e1564.zip |
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/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 9 |
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; |