diff options
Diffstat (limited to 'usr.bin/cvs/checkout.c')
-rw-r--r-- | usr.bin/cvs/checkout.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.bin/cvs/checkout.c b/usr.bin/cvs/checkout.c index e86bd49de4c..ce59cb2c704 100644 --- a/usr.bin/cvs/checkout.c +++ b/usr.bin/cvs/checkout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: checkout.c,v 1.64 2006/06/19 05:05:17 joris Exp $ */ +/* $OpenBSD: checkout.c,v 1.65 2006/07/01 20:30:46 reyk Exp $ */ /* * Copyright (c) 2006 Joris Vink <joris@openbsd.org> * @@ -176,6 +176,13 @@ cvs_checkout_file(struct cvs_file *cf, RCSNUM *rnum, BUF *bp, int flags) nbp = rcs_kwexp_buf(bp, cf->file_rcs, rnum); + if (flags & CO_DUMP) { + if (cvs_buf_write_fd(nbp, STDOUT_FILENO) == -1) + fatal("cvs_checkout_file: %s", strerror(errno)); + cvs_buf_free(nbp); + return; + } + oflags = O_WRONLY | O_TRUNC; if (cf->fd != -1) { exists = 1; |