diff options
-rw-r--r-- | include/ttyent.h | 1 | ||||
-rw-r--r-- | lib/libc/gen/getttyent.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/ttyent.h b/include/ttyent.h index accaf9c..e0f00f6 100644 --- a/include/ttyent.h +++ b/include/ttyent.h @@ -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" 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)) |