From 2c5675c057ec9d3d0e91b6be4a1332adc762165c Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Thu, 1 Dec 2022 09:08:51 -1000 Subject: [PATCH] SCP: Fix prior attempt to standardize MTAB WRITEENABLE options As reported by Antony Lawrence --- scp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scp.c b/scp.c index 763c94cb..e445518d 100644 --- a/scp.c +++ b/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"; }