From c4d292c1da1f8e158e4e5a107adf12ad4531e1ac Mon Sep 17 00:00:00 2001 From: tobias Date: Sun, 8 Jun 2008 02:54:08 +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/commit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/cvs/commit.c') diff --git a/usr.bin/cvs/commit.c b/usr.bin/cvs/commit.c index bcda61658d7..009c90ee226 100644 --- a/usr.bin/cvs/commit.c +++ b/usr.bin/cvs/commit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commit.c,v 1.133 2008/05/17 21:06:44 tobias Exp $ */ +/* $OpenBSD: commit.c,v 1.134 2008/06/08 02:54:08 tobias Exp $ */ /* * Copyright (c) 2006 Joris Vink * Copyright (c) 2006 Xavier Santolaria @@ -617,8 +617,8 @@ commit_desc_set(struct cvs_file *cf) int fd; char desc_path[MAXPATHLEN], *desc; - (void)xsnprintf(desc_path, MAXPATHLEN, "%s/%s%s", - CVS_PATH_CVSDIR, cf->file_name, CVS_DESCR_FILE_EXT); + (void)xsnprintf(desc_path, MAXPATHLEN, "%s/%s/%s%s", + cf->file_wd, CVS_PATH_CVSDIR, cf->file_name, CVS_DESCR_FILE_EXT); if ((fd = open(desc_path, O_RDONLY)) == -1) return; -- cgit v1.2.3-59-g8ed1b