=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/file.c,v retrieving revision 1.53 retrieving revision 1.54 diff -c -r1.53 -r1.54 *** src/usr.bin/cvs/file.c 2005/02/25 20:32:48 1.53 --- src/usr.bin/cvs/file.c 2005/03/02 16:56:58 1.54 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.53 2005/02/25 20:32:48 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.54 2005/03/02 16:56:58 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. *************** *** 885,890 **** --- 885,893 ---- if ((cfp = cvs_file_alloc(path, type)) == NULL) return (NULL); cfp->cf_parent = parent; + + if ((cfp->cf_type == DT_DIR) && (cfp->cf_parent == NULL)) + cfp->cf_ddat->cd_flags |= CVS_DIRF_BASE; if ((parent != NULL) && (CVS_DIR_ENTRIES(parent) != NULL)) ent = cvs_ent_get(CVS_DIR_ENTRIES(parent), CVS_FILE_NAME(cfp));