diff options
author | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-12 21:05:33 +0000 |
---|---|---|
committer | Jean-Francois Brousseau <jfb@cvs.openbsd.org> | 2004-08-12 21:05:33 +0000 |
commit | 2f866a6e831038ee537e099443a6d90f9f513aaf (patch) | |
tree | a3d49a045bbfca5516902a2b2869ae06dfd5d076 /usr.bin/cvs/file.c | |
parent | 5990963ba5262ca2f6f52fa45671e1d143fbe28e (diff) |
If we create a directory with cvs_file_create(), keep a pointer to the
newly created Entries file in the directory data
Diffstat (limited to 'usr.bin/cvs/file.c')
-rw-r--r-- | usr.bin/cvs/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <jfb@openbsd.org> * 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); |