From 3be2a24cd934b7aff7b6d60b9177959a80ef89c7 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sun, 8 Jun 2008 02:54:09 +0000 Subject: Properly build up path to description files (descr entry in RCS files if you add a file with -m message). ok joris --- usr.bin/cvs/add.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/cvs/add.c') 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 * Copyright (c) 2005, 2006 Xavier Santolaria @@ -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", -- cgit v1.2.3