1
0
mirror of https://github.com/simh/simh.git synced 2026-02-26 16:54:22 +00:00

SCP: Fix prior attempt to standardize MTAB WRITEENABLE options

As reported by Antony Lawrence
This commit is contained in:
Mark Pizzolato
2022-12-01 09:08:51 -10:00
parent 19cbe2d557
commit 2c5675c057

2
scp.c
View File

@@ -8270,7 +8270,7 @@ static void fix_writelock_mtab (DEVICE *dptr)
{
MTAB *mtab;
for (mtab = dptr->modifiers; (mtab != NULL) && (mtab->mstring != NULL); ++mtab) {
for (mtab = dptr->modifiers; (mtab != NULL) && ((mtab->mstring != NULL) || (mtab->pstring != NULL)); ++mtab) {
if (mtab->disp == &show_writelock)
mtab->pstring = "WRITEENABLED";
}