From 4187b6df5cb0d0b70fb99c4bd1a0c567149b08aa Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Sat, 27 Jul 2002 07:17:08 +0000
Subject: [PATCH] Added more detailed list open failure message.

---
 src/sbbs3/addfiles.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sbbs3/addfiles.c b/src/sbbs3/addfiles.c
index 17fe5a7e2b..0ce12f6a76 100644
--- a/src/sbbs3/addfiles.c
+++ b/src/sbbs3/addfiles.c
@@ -311,6 +311,8 @@ void addlist(char *inpath, file_t f, uint dskip, uint sskip)
 	strcpy(listpath,inpath);
 	fexistcase(listpath);
 	if((stream=fnopen(&file,listpath,O_RDONLY))==NULL) {
+		fprintf(stderr,"Error %d (%s) opening %s\n"
+			,errno,strerror(errno),listpath);
 		sprintf(listpath,"%s%s",cur_altpath ? scfg.altpath[cur_altpath-1]
 				: scfg.dir[f.dir]->path,inpath);
 		if((stream=fnopen(&file,listpath,O_RDONLY))==NULL) {
-- 
GitLab