aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/getty/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 0bb4f5ed2d79..0eaf0a4e4000 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -484,7 +484,7 @@ setttymode(const char *tname, int raw)
gettable(tname, tabent);
if (OPset || EPset || APset)
- APset++, OPset++, EPset++;
+ APset = OPset = EPset = 1;
setdefaults();
(void)tcflush(STDIN_FILENO, TCIOFLUSH); /* clear out the crap */
ioctl(STDIN_FILENO, FIONBIO, &off); /* turn off non-blocking mode */