diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-01 12:02:07 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2006-07-01 12:02:07 +0000 |
commit | f7db9bb2740fb328d5f7cd0cf0544ef7af21dd84 (patch) | |
tree | f08acb7416890ac61a3e1318fb79a81a2518d674 /usr.bin/cvs | |
parent | bf1cced4b0e663b6eee11ca421df7a0fcea6b7f8 (diff) |
fix a possible bug of pathname concatenation when adding subdirectories.
ok joris@
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/add.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cvs/add.c b/usr.bin/cvs/add.c index 33097e3cb9c..4e917f112be 100644 --- a/usr.bin/cvs/add.c +++ b/usr.bin/cvs/add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: add.c,v 1.59 2006/06/28 18:52:05 reyk Exp $ */ +/* $OpenBSD: add.c,v 1.60 2006/07/01 12:02:06 reyk Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * Copyright (c) 2005, 2006 Xavier Santolaria <xsa@openbsd.org> @@ -151,7 +151,7 @@ add_directory(struct cvs_file *cf) MAXPATHLEN); l = snprintf(entry, MAXPATHLEN, "%s/%s", repo, - cf->file_path); + cf->file_name); cvs_mkadmin(cf->file_path, current_cvsroot->cr_dir, entry, tag, date, nb); |