diff options
Diffstat (limited to 'lib/libc/gen/getgrent.3')
-rw-r--r-- | lib/libc/gen/getgrent.3 | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/lib/libc/gen/getgrent.3 b/lib/libc/gen/getgrent.3 index bb3f560..d070d8c 100644 --- a/lib/libc/gen/getgrent.3 +++ b/lib/libc/gen/getgrent.3 @@ -125,25 +125,6 @@ The .Fn endgrent function closes any open files. -.Sh YP/NIS INTERACTION -When the -.Xr yp 4 -group database is enabled, the -.Fn getgrnam -and -.Fn getgrgid -functions use the YP maps -.Dq Li group.byname -and -.Dq Li group.bygid , -respectively, if the requested group is not found in the local -.Pa /etc/group -file. The -.Fn getgrent -function will step through the YP map -.Dq Li group.byname -if the entire map is enabled as described in -.Xr group 5 . .Sh RETURN VALUES The functions .Fn getgrent , @@ -171,7 +152,8 @@ group database file .Sh SEE ALSO .Xr getpwent 3 , .Xr yp 4 , -.Xr group 5 +.Xr group 5 , +.Xr nsswitch.conf 5 .Sh HISTORY The functions .Fn endgrent , @@ -206,3 +188,17 @@ a pointer to that object. Subsequent calls to the same function will modify the same object. +.Pp +The functions +.Fn getgrent , +.Fn endgrent , +.Fn setgroupent , +and +.Fn setgrent +are fairly useless in a networked environment and should be +avoided, if possible. +.Fn getgrent +makes no attempt to suppress duplicate information if multiple +sources are specified in +.Xr nsswitch.conf 5 . + |