summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:37:23 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:37:23 +0200
commit5f9c778164aff5bd79779b7ea4b54a9135335a94 (patch)
treed379744906ed9d308a00c685ff2b864e4dfb16b4 /term
parent7e67095c3c80e733b2a62eaba85609e489fee82d (diff)
Fix setting modem control lines
* term/hurdio.c (hurdio_mdmctl): Pass `newbits` intead of `oldbits` to `tioctl_tiocmods`.
Diffstat (limited to 'term')
-rw-r--r--term/hurdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term/hurdio.c b/term/hurdio.c
index dfade0e6..357ab383 100644
--- a/term/hurdio.c
+++ b/term/hurdio.c
@@ -598,7 +598,7 @@ hurdio_mdmctl (int how, int bits)
else
newbits = bits;
- err = tioctl_tiocmods (ioport, oldbits);
+ err = tioctl_tiocmods (ioport, newbits);
if (err && (err == EMIG_BAD_ID || err == EOPNOTSUPP))
tioc_caps &= ~TIOC_CAP_MODS;
else if (err)