=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.65 retrieving revision 1.66 diff -u -r1.65 -r1.66 --- src/usr.bin/cvs/file.c 2005/04/18 22:28:41 1.65 +++ src/usr.bin/cvs/file.c 2005/04/19 00:32:55 1.66 @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.65 2005/04/18 22:28:41 joris Exp $ */ +/* $OpenBSD: file.c,v 1.66 2005/04/19 00:32:55 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -919,8 +919,16 @@ CVS_FILE_NAME(cfp)); cvs_file_free(cfp); return (NULL); - } else + } else { + if (ent->ce_type == CVS_ENT_FILE) + cfp->cf_type = DT_REG; + else if (ent->ce_type == CVS_ENT_DIR) + cfp->cf_type = DT_DIR; + else + cvs_log(LP_WARN, "unknown ce_type %d", + ent->ce_type); cfp->cf_cvstat = CVS_FST_LOST; + } } if (ent != NULL) {