diff options
author | 2008-06-08 02:54:08 +0000 | |
---|---|---|
committer | 2008-06-08 02:54:08 +0000 | |
commit | c4d292c1da1f8e158e4e5a107adf12ad4531e1ac (patch) | |
tree | 70dda1b28bb48122ad0807a6e6662fae1ba1477b /usr.bin/cvs/commit.c | |
parent | aaa_dev was being set from an uninitialized variable; ok toby (diff) | |
download | wireguard-openbsd-c4d292c1da1f8e158e4e5a107adf12ad4531e1ac.tar.xz wireguard-openbsd-c4d292c1da1f8e158e4e5a107adf12ad4531e1ac.zip |
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/commit.c')
-rw-r--r-- | usr.bin/cvs/commit.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <joris@openbsd.org> * Copyright (c) 2006 Xavier Santolaria <xsa@openbsd.org> @@ -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; |