diff options
author | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-08 02:54:09 +0000 |
---|---|---|
committer | Tobias Stoeckmann <tobias@cvs.openbsd.org> | 2008-06-08 02:54:09 +0000 |
commit | 3be2a24cd934b7aff7b6d60b9177959a80ef89c7 (patch) | |
tree | 4f33503aa3c20a68d55f80bad6cd4f5f06caf621 /usr.bin/cvs/add.c | |
parent | 0f750fa7bca200bc618a475d549ea32144d19139 (diff) |
Properly build up path to description files (descr entry in RCS files if
you add a file with -m message).
ok joris
Diffstat (limited to 'usr.bin/cvs/add.c')
-rw-r--r-- | usr.bin/cvs/add.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index f2fed8a3611..041e6df498c 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.98 2008/05/22 15:45:01 tobias Exp $ */ +/* $OpenBSD: add.c,v 1.99 2008/06/08 02:54:08 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -408,8 +408,9 @@ add_entry(struct cvs_file *cf) 0, 0, entry, CVS_ENT_MAXLINELEN); } else { if (logmsg != NULL) { - (void)xsnprintf(path, MAXPATHLEN, "%s/%s%s", - CVS_PATH_CVSDIR, cf->file_name, CVS_DESCR_FILE_EXT); + (void)xsnprintf(path, MAXPATHLEN, "%s/%s/%s%s", + cf->file_wd, CVS_PATH_CVSDIR, cf->file_name, + CVS_DESCR_FILE_EXT); if ((fp = fopen(path, "w+")) == NULL) fatal("add_entry: fopen `%s': %s", |