1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/sysutils/cpdup/files/patch-hclink.c
Guido Falsi f37722a042 - Don't pass -T option to ssh process, this allows use of the "null"
cipher if requested [1]
- Fix build with clang
- Trim Makefile headers

Submitted by:	Oliver Fromme <olli@grabthar.secnetix.de> [1]
Approved by:	Gianmarco Giovannelli <gmarco@gufi.org> (maintainer)
Feature safe:	yes
2012-11-07 08:25:42 +00:00

21 lines
652 B
C

--- hclink.c.orig 2010-07-19 21:01:56.000000000 +0200
+++ hclink.c 2012-11-05 13:16:09.731500043 +0100
@@ -49,7 +49,7 @@
av[n++] = "-C";
for (m = 0; m < ssh_argc; m++)
av[n++] = ssh_argv[m];
- av[n++] = "-T";
+ av[n++] = "--";
av[n++] = hc->host;
av[n++] = "cpdup";
av[n++] = (readonly ? "-RS" : "-S");
@@ -388,7 +388,7 @@
hcc_check_space(hctransaction_t trans, struct HCHead *head, int n, int size)
{
size = HCC_ALIGN(size) + n * sizeof(struct HCLeaf);
- if (size > HC_BUFSIZE - trans->windex) {
+ if (size >= HC_BUFSIZE - trans->windex) {
struct HCHead *whead = (void *)trans->wbuf;
whead->cmd |= HCF_CONTINUE;