$OpenBSD: patch-conserver_consent_c,v 1.6 2018/05/29 13:54:05 sthen Exp $
Index: conserver/consent.c
--- conserver/consent.c.orig
+++ conserver/consent.c
@@ -519,7 +519,8 @@ SetupTty(CONSENT *pCE, int fd)
     if (0 != tcgetattr(1, &n_tio)) {
 	exit(EX_OSERR);
     }
-    n_tio.c_iflag &= ~(IGNCR | IUCLC);
+
+    n_tio.c_iflag &= ~(IGNCR);
     n_tio.c_iflag |= ICRNL;
     if (pCE->ixon == FLAGTRUE)
 	n_tio.c_iflag |= IXON;
@@ -527,10 +528,8 @@ SetupTty(CONSENT *pCE, int fd)
 	n_tio.c_iflag |= IXANY;
     if (pCE->ixoff == FLAGTRUE)
 	n_tio.c_iflag |= IXOFF;
-    n_tio.c_oflag &=
-	~(OLCUC | ONOCR | ONLRET | OFILL | NLDLY | CRDLY | TABDLY | BSDLY);
     n_tio.c_oflag |= OPOST | ONLCR;
-    n_tio.c_lflag &= ~(XCASE | NOFLSH | ECHOK | ECHONL);
+    n_tio.c_lflag &= ~(NOFLSH|ECHOK|ECHONL);
     n_tio.c_lflag |= ISIG | ICANON | ECHO;
     n_tio.c_cc[VEOF] = '\004';
     n_tio.c_cc[VEOL] = '\000';
