summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/getttyent.c
diff options
context:
space:
mode:
authordavidn <davidn@FreeBSD.org>1997-01-02 08:05:43 +0000
committerdavidn <davidn@FreeBSD.org>1997-01-02 08:05:43 +0000
commit92746eca8682886861092d9eca8783451c1e5fd0 (patch)
tree62a914cb0e26eee76f6757ec5a9ef9b1ae57d3e6 /lib/libc/gen/getttyent.c
parent7174e698fdd0caf4f14e4f893f1bcec7a1f74e80 (diff)
downloadFreeBSD-src-92746eca8682886861092d9eca8783451c1e5fd0.zip
FreeBSD-src-92746eca8682886861092d9eca8783451c1e5fd0.tar.gz
Added group= facility to /etc/ttys for tty grouping for more
more manageable and convenient referencing by login.conf (login class database) and (e.g.) login.access. This is the first of a group of commits which implements the login class capabilities database.
Diffstat (limited to 'lib/libc/gen/getttyent.c')
-rw-r--r--lib/libc/gen/getttyent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/gen/getttyent.c b/lib/libc/gen/getttyent.c
index 5d40ac9..db615cb 100644
--- a/lib/libc/gen/getttyent.c
+++ b/lib/libc/gen/getttyent.c
@@ -110,6 +110,7 @@ getttyent()
}
tty.ty_status = 0;
tty.ty_window = NULL;
+ tty.ty_group = _TTYS_NOGROUP;
#define scmp(e) !strncmp(p, e, sizeof(e) - 1) && isspace(p[sizeof(e) - 1])
#define vcmp(e) !strncmp(p, e, sizeof(e) - 1) && p[sizeof(e) - 1] == '='
@@ -122,6 +123,8 @@ getttyent()
tty.ty_status |= TTY_SECURE;
else if (vcmp(_TTYS_WINDOW))
tty.ty_window = value(p);
+ else if (vcmp(_TTYS_GROUP))
+ tty.ty_group = value(p);
else
break;
}
OpenPOWER on IntegriCloud