Date: Sat, 4 Jun 2016 21:34:06 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301413 - head/usr.bin/getent Message-ID: <201606042134.u54LY68b053018@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: markj Date: Sat Jun 4 21:34:06 2016 New Revision: 301413 URL: https://svnweb.freebsd.org/changeset/base/301413 Log: Document getent(1)'s ability to enumerate netgroup members. MFC after: 3 days Modified: head/usr.bin/getent/getent.1 head/usr.bin/getent/getent.c Modified: head/usr.bin/getent/getent.1 ============================================================================== --- head/usr.bin/getent/getent.1 Sat Jun 4 20:20:14 2016 (r301412) +++ head/usr.bin/getent/getent.1 Sat Jun 4 21:34:06 2016 (r301413) @@ -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 enumerat .Xr ethers 5 , .Xr group 5 , .Xr hosts 5 , +.Xr netgroup 5 , .Xr networks 5 , .Xr nsswitch.conf 5 , .Xr passwd 5 , Modified: head/usr.bin/getent/getent.c ============================================================================== --- head/usr.bin/getent/getent.c Sat Jun 4 20:20:14 2016 (r301412) +++ head/usr.bin/getent/getent.c Sat Jun 4 21:34:06 2016 (r301413) @@ -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, },
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606042134.u54LY68b053018>