diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-10 21:32:20 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2007-01-10 21:32:20 +0000 |
commit | 14899d471a3b44250f6241c866b38ffbbf28a757 (patch) | |
tree | ee297e5e0f9823d11f926561d6f052681a7e24cc /usr.bin/cvs/edit.c | |
parent | f3c59fc535b2eb9bf8d062ba91621b9acf916d51 (diff) |
add a cvs_file_copy routine and use it for the edit command to
copy the file in the current working directory to CVS/Base/
ok ray@ joris@.
Diffstat (limited to 'usr.bin/cvs/edit.c')
-rw-r--r-- | usr.bin/cvs/edit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/edit.c b/usr.bin/cvs/edit.c index f55f66cfbbb..1f428d6e408 100644 --- a/usr.bin/cvs/edit.c +++ b/usr.bin/cvs/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.25 2007/01/09 10:01:43 xsa Exp $ */ +/* $OpenBSD: edit.c,v 1.26 2007/01/10 21:32:19 xsa Exp $ */ /* * Copyright (c) 2006, 2007 Xavier Santolaria <xsa@openbsd.org> * @@ -303,7 +303,8 @@ cvs_edit_local(struct cvs_file *cf) fatal("cvs_edit_local: `%s': %s", CVS_PATH_BASEDIR, strerror(errno)); - /* XXX: copy cf->file_path to bfpath */ + if (cvs_file_copy(cf->file_path, bfpath) == -1) + fatal("cvs_edit_local: cvs_file_copy failed"); xfree(bfpath); |