summaryrefslogtreecommitdiff
path: root/term/hurdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'term/hurdio.c')
-rw-r--r--term/hurdio.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/term/hurdio.c b/term/hurdio.c
index 357ab383..b34854cd 100644
--- a/term/hurdio.c
+++ b/term/hurdio.c
@@ -585,10 +585,15 @@ hurdio_mdmctl (int how, int bits)
{
error_t err = tioctl_tiocmodg (ioport, &oldbits);
if (err && (err == EMIG_BAD_ID || err == EOPNOTSUPP))
- tioc_caps &= ~TIOC_CAP_MODG;
+ {
+ tioc_caps &= ~TIOC_CAP_MODG;
+ return EOPNOTSUPP;
+ }
else if (err)
return err;
}
+ else
+ return EOPNOTSUPP;
}
if (how == MDMCTL_BIS)