diff options
author | Joris Vink <joris@cvs.openbsd.org> | 2007-01-18 16:45:53 +0000 |
---|---|---|
committer | Joris Vink <joris@cvs.openbsd.org> | 2007-01-18 16:45:53 +0000 |
commit | 1d2bf3c06fb24ab6e3c6d60346f8d9e6359384fc (patch) | |
tree | c63f3694e6fb2b2c77ae81bc879caafcad1316d2 /usr.bin/cvs/remote.c | |
parent | 836bc0a4c096fe519947f933469838dd10809ec3 (diff) |
import improvements:
- add support for remote import in opencvs client and server.
- do not free already free'd buffers in import_update()
- do not append a '\0' to the loaded file buffer, this was bad behaviour
makes import work fine both locally and remotely.
Diffstat (limited to 'usr.bin/cvs/remote.c')
-rw-r--r-- | usr.bin/cvs/remote.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/remote.c b/usr.bin/cvs/remote.c index f5094ff96a8..c1f83b00e54 100644 --- a/usr.bin/cvs/remote.c +++ b/usr.bin/cvs/remote.c @@ -1,4 +1,4 @@ -/* $OpenBSD: remote.c,v 1.6 2007/01/13 15:29:34 joris Exp $ */ +/* $OpenBSD: remote.c,v 1.7 2007/01/18 16:45:52 joris Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -245,5 +245,8 @@ cvs_remote_classify_file(struct cvs_file *cf) } else if (cf->fd == -1) { cf->file_status = FILE_UNKNOWN; } + + if (cvs_cmdop == CVS_OP_IMPORT && cf->file_type == CVS_FILE) + cf->file_status = FILE_MODIFIED; } |