mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
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:
parent
ec7d3a3282
commit
a60c8a80bc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=22734
|
@ -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"
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue