summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2007-05-16 19:40:46 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2007-05-16 19:40:46 +0000
commitf75b7e3a2f01c56555fcd65d95ed12e412181008 (patch)
tree5504e52a7d299eca6aa721f7c0010d06c2e15ceb /usr.bin
parentb93e7a86db144bb6042f817bf19112233e899373 (diff)
In remote setup, write sent files to inlog (if specified) instead of outlog.
Matches GNU CVS' behaviour. From Tobias Stoeckmann.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/remote.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/cvs/remote.c b/usr.bin/cvs/remote.c
index 9d5452e0e1c..63bb416478c 100644
--- a/usr.bin/cvs/remote.c
+++ b/usr.bin/cvs/remote.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: remote.c,v 1.14 2007/02/22 06:42:09 otto Exp $ */
+/* $OpenBSD: remote.c,v 1.15 2007/05/16 19:40:45 xsa Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -188,9 +188,8 @@ cvs_remote_send_file(const char *path)
if (rw != ret)
fatal("failed to write %zu bytes", ret);
- if (cvs_server_active == 0 &&
- cvs_client_outlog_fd != -1)
- (void)write(cvs_client_outlog_fd, data, ret);
+ if (cvs_server_active == 0 && cvs_client_inlog_fd != -1)
+ (void)write(cvs_client_inlog_fd, data, ret);
total += ret;
}