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
1dd609a3d1
commit
611c96cfb8
@ -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 New Issue
Block a user