From e4df0923b02825f8d8cf6553920dfeafe1f6886a Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Wed, 1 Aug 2001 23:22:24 +0000
Subject: [PATCH] Fixed bug in listfileinfo(FI_USERXFER) when the xfer.ixt file
 didn't exist or was 0-length.

---
 src/sbbs3/listfile.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/listfile.cpp b/src/sbbs3/listfile.cpp
index 8e7840b82d..32825f7240 100644
--- a/src/sbbs3/listfile.cpp
+++ b/src/sbbs3/listfile.cpp
@@ -834,7 +834,9 @@ int sbbs_t::listfileinfo(uint dirnum, char *filespec, long mode)
 	struct	tm * tm;
 
 	sprintf(str,"%sxfer.ixt",cfg.data_dir);
-	if(mode==FI_USERXFER && flength(str)>0L) {
+	if(mode==FI_USERXFER) {
+		if(flength(str)<1L)
+			return(0);
 		if((file=nopen(str,O_RDONLY))==-1) {
 			errormsg(WHERE,ERR_OPEN,str,O_RDONLY);
 			return(0); }
-- 
GitLab