Allow commonly-used "insecure" as a valid keyword in /etc/ttys.

This prevents keywords after "insecure" occurs being errnoeously
parsed as comments.
This commit is contained in:
davidn 1997-02-15 05:45:00 +00:00
parent 1dd609a3d1
commit 611c96cfb8
2 changed files with 3 additions and 0 deletions

View File

@ -41,6 +41,7 @@
#define _TTYS_OFF "off"
#define _TTYS_ON "on"
#define _TTYS_SECURE "secure"
#define _TTYS_INSECURE "insecure"
#define _TTYS_WINDOW "window"
#define _TTYS_GROUP "group"
#define _TTYS_NOGROUP "none"

View File

@ -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))