lftp/backport-fill-verify_fn-for-quickly-second-segmentation-violation.patch
liweiganga ed44f70d90 sync upstream patch
(cherry picked from commit 8c4c5b75932415f46caa13262506a81732c7bbfc)
2022-12-13 09:40:16 +08:00

28 lines
759 B
Diff

From cb80e261acad0c17acaf4b4f51b7a66e4d038bda Mon Sep 17 00:00:00 2001
From: Rimsky <349157738@qq.com>
Date: Tue, 9 Aug 2022 13:15:45 +0800
Subject: [PATCH] fill verify_fn for quickly second segmentation violation
---
src/GetFileInfo.cc | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/GetFileInfo.cc b/src/GetFileInfo.cc
index b553544c..bbcf51c0 100644
--- a/src/GetFileInfo.cc
+++ b/src/GetFileInfo.cc
@@ -398,6 +398,10 @@ int GetFileInfo::Do()
* also serves as a last attempt to see if the file exists--we
* only get here if everything else thinks the path doesn't exist.
*/
+
+ if(!verify_fn)
+ MakeVerifyFileName();
+
FileInfo *fi=new FileInfo(verify_fn);
fi->need=need;
/* We need to do at least one. */
--
2.20.1