diff options
author | 2005-02-22 23:31:13 +0000 | |
---|---|---|
committer | 2005-02-22 23:31:13 +0000 | |
commit | 673ec54b1df3ad3c55ead354d3f14663be10b807 (patch) | |
tree | 7f8919e7cf7a5f3612cadc7ef31d01415bbd57cb | |
parent | unused variable (diff) | |
download | wireguard-openbsd-673ec54b1df3ad3c55ead354d3f14663be10b807.tar.xz wireguard-openbsd-673ec54b1df3ad3c55ead354d3f14663be10b807.zip |
use the file's name, and not its full path, when building the path to
the RCS file in the repository
spotted by pvalchev@
-rw-r--r-- | usr.bin/cvs/update.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/update.c b/usr.bin/cvs/update.c index f418a9548bc..ea89591275a 100644 --- a/usr.bin/cvs/update.c +++ b/usr.bin/cvs/update.c @@ -1,4 +1,4 @@ -/* $OpenBSD: update.c,v 1.15 2005/02/04 17:50:20 jfb Exp $ */ +/* $OpenBSD: update.c,v 1.16 2005/02/22 23:31:13 jfb Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -191,7 +191,7 @@ cvs_update_file(CVSFILE *cf, void *arg) } snprintf(rcspath, sizeof(rcspath), "%s/%s/%s%s", - root->cr_dir, repo, fpath, RCS_FILE_EXT); + root->cr_dir, repo, fname, RCS_FILE_EXT); rf = rcs_open(rcspath, RCS_MODE_READ); if (rf == NULL) { |