diff options
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index 007c8d5e9d8..d7a04eec8e3 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.53 2005/02/25 20:32:48 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.54 2005/03/02 16:56:58 joris Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -886,6 +886,9 @@ cvs_file_lget(const char *path, int flags, CVSFILE *parent) 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)); |