entered into RCS
authorroland <roland>
Sat, 12 Sep 1992 20:31:16 +0000 (20:31 +0000)
committerroland <roland>
Sat, 12 Sep 1992 20:31:16 +0000 (20:31 +0000)
misc/getttyent.c
misc/ttyent.h

index c52fa0a..b572fb7 100644 (file)
@@ -108,6 +108,10 @@ getttyent()
                        tty.ty_status |= TTY_ON;
                else if (scmp(_TTYS_SECURE))
                        tty.ty_status |= TTY_SECURE;
+               else if (scmp(_TTYS_TRUSTED))
+                       tty.ty_status |= TTY_TRUSTED;
+               else if (scmp(_TTYS_CONSOLE))
+                       tty.ty_status |= TTY_CONSOLE;
                else if (vcmp(_TTYS_WINDOW))
                        tty.ty_window = value(p);
                else
index ed7d996..3d043c5 100644 (file)
@@ -42,6 +42,8 @@
 #define        _TTYS_ON        "on"
 #define        _TTYS_SECURE    "secure"
 #define        _TTYS_WINDOW    "window"
+#define _TTYS_TRUSTED  "trusted"
+#define _TTYS_CONSOLE  "console"
 
 struct ttyent {
        char    *ty_name;       /* terminal device name */
@@ -49,6 +51,8 @@ struct ttyent {
        char    *ty_type;       /* terminal type for termcap */
 #define        TTY_ON          0x01    /* enable logins (start ty_getty program) */
 #define        TTY_SECURE      0x02    /* allow uid of 0 to login */
+#define        TTY_TRUSTED     0x04    /* allow login without password */
+#define        TTY_CONSOLE     0x08    /* allow uid of 0 to login without password */
        int     ty_status;      /* status flags */
        char    *ty_window;     /* command to start up window manager */
        char    *ty_comment;    /* comment field */