From c3f55fc6928aa861ab06d849488d45f2f83b392e Mon Sep 17 00:00:00 2001 From: Tony Lawrence Date: Mon, 2 Oct 2023 11:29:23 -0400 Subject: [PATCH] SCP: Fix correctly loading simh.ini when user HOME not defined --- scp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scp.c b/scp.c index a8583c4a..101fa396 100644 --- a/scp.c +++ b/scp.c @@ -2932,6 +2932,8 @@ if (docmdp) { snprintf(nbuf, sizeof (nbuf), "\"%s%s%ssimh.ini\"", cptr2 ? cptr2 : "", cptr, strchr (cptr, '/') ? "/" : "\\"); stat = docmdp->action (-1, nbuf); /* simh.ini proc cmd file */ } + else + stat = SCPE_OPENERR; if (SCPE_BARE_STATUS(stat) == SCPE_OPENERR) stat = docmdp->action (-1, "simh.ini"); /* simh.ini proc cmd file */ if (*cbuf) /* cmd file arg? */