1
0
mirror of https://github.com/openbsd/src.git synced 2024-12-21 23:18:00 -08:00

gettytab's dx flag is supposed to set decctlq, which is the opposite of

ixany, but was setting ixany instead.

Fix this by reversing the logic.

Bug report and fix from Piotr Durlej, thanks!
This commit is contained in:
miod 2024-11-09 11:22:18 +00:00
parent 22ac2f2a6f
commit 667e8970ce

View File

@ -1,4 +1,4 @@
/* $OpenBSD: subr.c,v 1.28 2018/06/14 23:19:27 gsoares Exp $ */ /* $OpenBSD: subr.c,v 1.29 2024/11/09 11:22:18 miod Exp $ */
/* /*
* Copyright (c) 1983, 1993 * Copyright (c) 1983, 1993
@ -307,9 +307,9 @@ setflags(int n)
CLR(lflag, ECHOCTL); CLR(lflag, ECHOCTL);
if (DX) if (DX)
SET(lflag, IXANY);
else
CLR(lflag, IXANY); CLR(lflag, IXANY);
else
SET(lflag, IXANY);
out: out:
tmode.c_iflag = iflag; tmode.c_iflag = iflag;