Skip to content
Snippets Groups Projects
Commit e4df0923 authored by rswindell's avatar rswindell
Browse files

Fixed bug in listfileinfo(FI_USERXFER) when the xfer.ixt file didn't exist or was 0-length.

parent bcbba16f
Branches
Tags
No related merge requests found
......@@ -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); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment