On Fri, Aug 08, 2014 at 10:16:43AM +0800, Edward wrote: > Hi, > > While reading on login.conf(5), can't find "tc" capability mentions. > But, examples & usage are demonstrated in /etc/login.conf. After some > search and readings, found out that it has a few paragraph explaining in > getcap(3): > > "A special capability, tc= name, is used to indicate that the record specified > by name should be substituted for the tc capability. tc capabilities may > interpolate records which also contain tc capabilities and more than one tc > capability may be used in a record. A tc expansion scope (i.e., where the > argument is searched for) contains the file in which the tc is declared and > all > subsequent files in the file array. > > When a database is searched for a capability record, the first matching record > in the search is returned. When a record is scanned for a capability, the > first matching capability is returned; the capability :nameT@: will hide any > following definition of a value of type T for name; and the capability :name@: > will prevent any following values of name from being seen. > > These features combined with tc capabilities can be used to generate > variations > of other databases and records by either adding new capabilities, overriding > definitions with new definitions, or hiding following definitions via `@' > capabilities." > > I though it should be mention in login.conf(5). Attached is a diff > inserting "tc" capability into the table of login.conf(5). > > Comments? > > Regards, > Edward. > > Index: login.conf.5 > =================================================================== > RCS file: /cvs/src/share/man/man5/login.conf.5,v > retrieving revision 1.52 > diff -u -p -r1.52 login.conf.5 > --- login.conf.5 18 Feb 2014 22:54:14 -0000 1.52 > +++ login.conf.5 8 Aug 2014 02:00:04 -0000 > @@ -310,6 +310,13 @@ The > environment variable will contain the shell specified in the password file. > .\" > .Pp > +.It tc Ta string Ta "" Ta > +Interpolate / Expands records from corresponding > +.Pa login.conf . > +See > +.Xr getcap 3 . > +.\" > +.Pp > .It term Ta string Ta Dv su Ta > Default terminal type if not able to determine from other means. > .\" >
fixed, thanks. jmc