From 7da59843b5bbce4989e756624ecc0f4e9339218c Mon Sep 17 00:00:00 2001 From: Gang Zhuo Date: Mon, 7 Mar 2016 04:27:00 -0500 Subject: [PATCH] download 0 size file --- shell.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell.c b/shell.c index 3f9c1b49..359beed5 100644 --- a/shell.c +++ b/shell.c @@ -3549,7 +3549,7 @@ static inline int do_download(ShellContext *context, fsize = pcs_get_download_filesize(context->pcs, remote_path); ds.file_size = fsize; - if (fsize < 1) { + if (fsize < 0) { if (pErrMsg) { if (*pErrMsg) pcs_free(*pErrMsg); (*pErrMsg) = pcs_utils_sprintf("Can't get the file size.\n");