From 667e8970ce31662bcc1100d75e7064997a1e078a Mon Sep 17 00:00:00 2001 From: miod Date: Sat, 9 Nov 2024 11:22:18 +0000 Subject: [PATCH] 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! --- libexec/getty/subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 49b7f3d3ae5..8980ed4e60b 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -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 @@ -307,9 +307,9 @@ setflags(int n) CLR(lflag, ECHOCTL); if (DX) - SET(lflag, IXANY); - else CLR(lflag, IXANY); + else + SET(lflag, IXANY); out: tmode.c_iflag = iflag;