aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/getent/getent.14
-rw-r--r--usr.bin/getent/getent.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/getent/getent.1 b/usr.bin/getent/getent.1
index a14bdfaabd67..a77a18084e9b 100644
--- a/usr.bin/getent/getent.1
+++ b/usr.bin/getent/getent.1
@@ -29,7 +29,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 24, 2005
+.Dd June 4, 2016
.Dt GETENT 1
.Os
.Sh NAME
@@ -62,6 +62,7 @@ argument may be one of:
.It Li ethers Ta address name
.It Li group Ta group:passwd:gid:[member[,member]...]
.It Li hosts Ta address name [alias ...]
+.It Li netgroup Ta (host,user,domain) [...]
.It Li networks Ta name network [alias ...]
.It Li passwd Ta user:passwd:uid:gid:gecos:home_dir:shell
.It Li protocols Ta name protocol [alias ...]
@@ -107,6 +108,7 @@ or 3 if there is no support for enumeration on
.Xr ethers 5 ,
.Xr group 5 ,
.Xr hosts 5 ,
+.Xr netgroup 5 ,
.Xr networks 5 ,
.Xr nsswitch.conf 5 ,
.Xr passwd 5 ,
diff --git a/usr.bin/getent/getent.c b/usr.bin/getent/getent.c
index 89c58a280c16..977f1471fff2 100644
--- a/usr.bin/getent/getent.c
+++ b/usr.bin/getent/getent.c
@@ -84,13 +84,13 @@ static struct getentdb {
{ "ethers", ethers, },
{ "group", group, },
{ "hosts", hosts, },
+ { "netgroup", netgroup, },
{ "networks", networks, },
{ "passwd", passwd, },
{ "protocols", protocols, },
{ "rpc", rpc, },
{ "services", services, },
{ "shells", shells, },
- { "netgroup", netgroup, },
{ "utmpx", utmpx, },
{ NULL, NULL, },