From 225acbf4c8216305baf08ccae16f6165ece4cb16 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Tue, 5 May 2020 04:09:11 +0000 Subject: [PATCH] Only complain about not being able to open ctrl/jsexec.ini, if the file exists --- src/sbbs3/jsexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/jsexec.c b/src/sbbs3/jsexec.c index 23cdd89b37..0c84b27eb1 100644 --- a/src/sbbs3/jsexec.c +++ b/src/sbbs3/jsexec.c @@ -1201,7 +1201,7 @@ int main(int argc, char **argv, char** env) if((fp = iniOpenFile(ini_fname, /* create: */FALSE)) != NULL) { ini = iniReadFile(fp); iniCloseFile(fp); - } else { + } else if(fexist(ini_fname)) { fprintf(stderr, "Error %d (%s) opening %s\n", errno, strerror(errno), ini_fname); } get_ini_values(ini, /* section (global): */NULL, &cb); -- GitLab