From 2f866a6e831038ee537e099443a6d90f9f513aaf Mon Sep 17 00:00:00 2001 From: Jean-Francois Brousseau Date: Thu, 12 Aug 2004 21:05:33 +0000 Subject: If we create a directory with cvs_file_create(), keep a pointer to the newly created Entries file in the directory data --- usr.bin/cvs/file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/cvs/file.c') diff --git a/usr.bin/cvs/file.c b/usr.bin/cvs/file.c index b76c7b13891..07543220d27 100644 --- a/usr.bin/cvs/file.c +++ b/usr.bin/cvs/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.26 2004/08/12 18:36:39 jfb Exp $ */ +/* $OpenBSD: file.c,v 1.27 2004/08/12 21:05:32 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * All rights reserved. @@ -252,6 +252,8 @@ cvs_file_create(const char *path, u_int type, mode_t mode) return (NULL); } + cfp->cf_ddat->cd_ent = cvs_ent_open(path, O_RDWR); + } else { fd = open(path, O_WRONLY|O_CREAT|O_EXCL, mode); -- cgit v1.2.3