From 1b6d8415d7953aac94cc2cda43230257b224339e Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 8 Feb 2003 19:00:09 +0000
Subject: [PATCH] Use fexistcase() rather than fexist() so uploads of
 lower-case filenames (That STILL have to be 8.3) work.

---
 src/sbbs3/upload.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/sbbs3/upload.cpp b/src/sbbs3/upload.cpp
index e6a5f4740c..8b573098f9 100644
--- a/src/sbbs3/upload.cpp
+++ b/src/sbbs3/upload.cpp
@@ -64,9 +64,9 @@ bool sbbs_t::uploadfile(file_t *f)
 		? cfg.altpath[f->altpath-1]
 		: cfg.dir[f->dir]->path,unpadfname(f->name,fname));
 	sprintf(tmp,"%s%s",cfg.temp_dir,fname);
-	if(!fexist(path) && fexist(tmp))
+	if(!fexistcase(path) && fexistcase(tmp))
 		mv(tmp,path,0);
-	if(!fexist(path)) {
+	if(!fexistcase(path)) {
 		bprintf(text[FileNotReceived],f->name);
 		sprintf(str,"%s attempted to upload %s to %s %s (Not received)"
 			,useron.alias
@@ -291,7 +291,7 @@ bool sbbs_t::upload(uint dirnum)
 	action=NODE_ULNG;
 	padfname(fname,f.name);
 	sprintf(str,"%s%s",path,fname);
-	if(fexist(str)) {   /* File is on disk */
+	if(fexistcase(str)) {   /* File is on disk */
 		if(!dir_op(dirnum) && online!=ON_LOCAL) {		 /* local users or sysops */
 			bprintf(text[FileAlreadyThere],fname);
 			return(false); }
@@ -416,7 +416,7 @@ bool sbbs_t::upload(uint dirnum)
 		if(mv(src,str,1))
 			return(false);
 		CRLF; }
-	if(fexist(str)) {   /* File is on disk */
+	if(fexistcase(str)) {   /* File is on disk */
 		if(!uploadfile(&f))
 			return(false); }
 	else {
-- 
GitLab