summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornik <nik@FreeBSD.org>1999-07-14 22:36:10 +0000
committernik <nik@FreeBSD.org>1999-07-14 22:36:10 +0000
commit43a5345db522e613f621a9c01c5acbfe612e91aa (patch)
treec2a7dc2e210d3154502067d04625b6f073443d69 /lib
parent82c03039352997a53fffd345ac2e99e1c4f09e21 (diff)
downloadFreeBSD-src-43a5345db522e613f621a9c01c5acbfe612e91aa.zip
FreeBSD-src-43a5345db522e613f621a9c01c5acbfe612e91aa.tar.gz
Be a little clearer about login_getpwclass(3), and its penchant for
looking up a record called "root". PR: docs/12377 Submitted by: Adrian Filipi-Martin <adrian@ubergeeks.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/libutil/login_cap.38
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libutil/login_cap.3 b/lib/libutil/login_cap.3
index 3487688..31b0928 100644
--- a/lib/libutil/login_cap.3
+++ b/lib/libutil/login_cap.3
@@ -17,7 +17,7 @@
.\" 5. Modifications may be freely made to this file providing the above
.\" conditions are met.
.\"
-.\" $Id: login_cap.3,v 1.9 1998/06/06 05:50:42 jkoshy Exp $
+.\" $Id: login_cap.3,v 1.10 1999/02/12 02:12:06 alex Exp $
.\"
.Dd December 27, 1996
.Os FreeBSD
@@ -147,6 +147,11 @@ functions will search for a record with an id of "default",
with that name returned in the
.Ar lc_class
field.
+In addition, if the referenced user has a UID of 0 (normally,
+"root", although the user name is not considered) then
+.Fn login_getpwclass
+will search for a record with an id of "root" before it searches
+for the record with the id of "default".
.Pp
The
.Ar lc_cap
@@ -231,6 +236,7 @@ and
.Fn login_getclass
restricts loookup only to the system login class database in
.Pa /etc/login.conf .
+As explained earlier,
.Fn login_getpwclass
only differs from
.Fn login_getclass
OpenPOWER on IntegriCloud