summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-02-15 05:45:00 +0000
committerdavidn <davidn@FreeBSD.org>1997-02-15 05:45:00 +0000
commit611c96cfb8d82d11751cf959c63b6da45a352553 (patch)
treefa14b71c4d44b7ad99092a2c54a8cc922a3a05d8 /lib/libc
parent1dd609a3d1987733a003885713fff603b5b3755e (diff)
downloadFreeBSD-src-611c96cfb8d82d11751cf959c63b6da45a352553.zip
FreeBSD-src-611c96cfb8d82d11751cf959c63b6da45a352553.tar.gz
Allow commonly-used "insecure" as a valid keyword in /etc/ttys.
This prevents keywords after "insecure" occurs being errnoeously parsed as comments.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/getttyent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c
index db615cb..ca0413c 100644
--- a/lib/libc/gen/getttyent.c
+++ b/lib/libc/gen/getttyent.c
@@ -121,6 +121,8 @@ getttyent()
tty.ty_status |= TTY_ON;
else if (scmp(_TTYS_SECURE))
tty.ty_status |= TTY_SECURE;
+ else if (scmp(_TTYS_INSECURE))
+ tty.ty_status &= ~TTY_SECURE;
else if (vcmp(_TTYS_WINDOW))
tty.ty_window = value(p);
else if (vcmp(_TTYS_GROUP))
OpenPOWER on IntegriCloud