aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ypcat/ypcat.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2009-06-25 16:15:39 +0000
committerBrian Somers <brian@FreeBSD.org>2009-06-25 16:15:39 +0000
commit53c405786b1cdc318bb35b9cf1e2fe6e4bcdee57 (patch)
tree9a6b7f4860169027c143248b8fa6f7a6afd15fc6 /usr.bin/ypcat/ypcat.c
parent2642e635f24ba4c28d64b7b602456275beeef79d (diff)
downloadsrc-53c405786b1cdc318bb35b9cf1e2fe6e4bcdee57.tar.gz
src-53c405786b1cdc318bb35b9cf1e2fe6e4bcdee57.zip
Support shadow.byname and shadow.byuid maps, protecting them by
insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. Approved by: re (kib) MFC after: 3 weeks
Notes
Notes: svn path=/head/; revision=194968
Diffstat (limited to 'usr.bin/ypcat/ypcat.c')
-rw-r--r--usr.bin/ypcat/ypcat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ypcat/ypcat.c b/usr.bin/ypcat/ypcat.c
index 55390433597a..3484bc9c1f4c 100644
--- a/usr.bin/ypcat/ypcat.c
+++ b/usr.bin/ypcat/ypcat.c
@@ -52,6 +52,7 @@ struct ypalias {
} ypaliases[] = {
{ "passwd", "passwd.byname" },
{ "master.passwd", "master.passwd.byname" },
+ { "shadow", "shadow.byname" },
{ "group", "group.byname" },
{ "networks", "networks.byaddr" },
{ "hosts", "hosts.byaddr" },