summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormbalmer <mbalmer@openbsd.org>2008-06-10 00:25:03 +0000
committermbalmer <mbalmer@openbsd.org>2008-06-10 00:25:03 +0000
commit67d838a936154b31a9097ef465fbea26e79fd18f (patch)
treed6de9e72fc9ef32b9a03cdc3d5167587538b06b6
parentRemove copyright notices and put these files back into the public domain. (diff)
downloadwireguard-openbsd-67d838a936154b31a9097ef465fbea26e79fd18f.tar.xz
wireguard-openbsd-67d838a936154b31a9097ef465fbea26e79fd18f.zip
correctly setup the tty line for NMEA devices, especially turn off echo
to the device. found by ckuethe, fixed and tested with ckuethe
-rw-r--r--sbin/ldattach/ldattach.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/ldattach/ldattach.c b/sbin/ldattach/ldattach.c
index 8dcf9c1a49b..d50a597da44 100644
--- a/sbin/ldattach/ldattach.c
+++ b/sbin/ldattach/ldattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ldattach.c,v 1.7 2008/06/09 23:15:55 mbalmer Exp $ */
+/* $OpenBSD: ldattach.c,v 1.8 2008/06/10 00:25:03 mbalmer Exp $ */
/*
* Copyright (c) 2007, 2008 Marc Balmer <mbalmer@openbsd.org>
@@ -269,6 +269,10 @@ main(int argc, char *argv[])
warnx("TIOCSTSTAMP");
goto bail_out;
}
+ tty.c_cc[VMIN] = tty.c_cc[VTIME] = 0;
+ tty.c_iflag = 0;
+ tty.c_lflag = 0;
+ tty.c_oflag = 0;
break;
case SLIPDISC:
tty.c_iflag = 0;