30 lines
933 B
Diff
30 lines
933 B
Diff
From 9697856be9af5f3d51a85ef29b02d956b94b0b55 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=E7=A8=8B=E4=B8=9A=E6=98=A5?=
|
|
<57088250+chengyechun@users.noreply.github.com>
|
|
Date: Thu, 10 Oct 2024 14:48:39 +0800
|
|
Subject: [PATCH] Update FileCopy.cc
|
|
|
|
File growth can be calculated only if it is strictly greater than
|
|
|
|
Conflict:NA
|
|
Reference:https://github.com/lavv17/lftp/commit/9697856be9af5f3d51a85ef29b02d956b94b0b55
|
|
|
|
---
|
|
src/FileCopy.cc | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/FileCopy.cc b/src/FileCopy.cc
|
|
index 31d4e066..0d71d29b 100644
|
|
--- a/src/FileCopy.cc
|
|
+++ b/src/FileCopy.cc
|
|
@@ -1137,7 +1137,8 @@ void FileCopyPeerFA::OpenSession()
|
|
debug((10,"copy dst: seek past eof (seek_pos=%lld, size=%lld)\n",
|
|
(long long)seek_pos,(long long)e_size));
|
|
eof=true;
|
|
- fileincreased=true;
|
|
+ if(seek_pos>e_size)
|
|
+ fileincreased=true;
|
|
if(date==NO_DATE || date==NO_DATE_YET)
|
|
return;
|
|
}
|