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:
2
scp.c
2
scp.c
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user