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:
David Nugent 1997-02-15 05:45:00 +00:00
parent ec7d3a3282
commit a60c8a80bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22734
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))