Skip to content

Commit

Permalink
SCP: Fix correctly loading simh.ini when user HOME not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
al20878 authored and pkoning2 committed Oct 10, 2023
1 parent cc97971 commit c3f55fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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? */
Expand Down

0 comments on commit c3f55fc

Please sign in to comment.