diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-11-15 18:01:59 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-11-15 18:01:59 +0000 |
commit | c80b197509ead45bc100ba52513a780604c14def (patch) | |
tree | 8e2acd22b5ed3f2384053a0870152303fe5cd604 /usr.sbin/ypserv | |
parent | fd402a6d26c62d9f07cdec7bd73441a81293928f (diff) | |
download | FreeBSD-src-c80b197509ead45bc100ba52513a780604c14def.zip FreeBSD-src-c80b197509ead45bc100ba52513a780604c14def.tar.gz |
Eek! When I added the YP_INTERDOMAIN and YP_SECURE support, I documented
and set the B and S variables here, but I forgot to actually add them to
the master.passwd and hosts.* targets. In other words, they weren't being
passed to yp_mkdb as needed.
This needs to go into 2.2; it doesn't break things a lot, but it leaves
your master.passwd maps available to unprivileged users without you
realizing it.
Diffstat (limited to 'usr.sbin/ypserv')
-rw-r--r-- | usr.sbin/ypserv/Makefile.yp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/ypserv/Makefile.yp b/usr.sbin/ypserv/Makefile.yp index 3a73531..f15dfb4 100644 --- a/usr.sbin/ypserv/Makefile.yp +++ b/usr.sbin/ypserv/Makefile.yp @@ -1,7 +1,7 @@ # # Makefile for the NIS databases # -# $Id: Makefile.yp,v 1.12 1996/08/09 17:55:18 adam Exp $ +# $Id: Makefile.yp,v 1.13 1996/10/24 18:58:21 wpaul Exp $ # # This Makefile should only be run on the NIS master server of a domain. # All updated maps will be pushed to all NIS slave servers listed in the @@ -271,7 +271,7 @@ hosts.byname: $(HOSTS) @echo $@.$$$$ > $(NFILE) $(CAT) $(HOSTS) | \ $(AWK) '/^[0-9]/ { for (n=2; n<=NF && $$n !~ "#"; n++) \ - print $$n"\t"$$0 }' $^ | $(DBLOAD) -i $(HOSTS) \ + print $$n"\t"$$0 }' $^ | $(DBLOAD) ${B} -i $(HOSTS) \ -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @$(DBLOAD) -c @@ -285,7 +285,7 @@ hosts.byaddr: $(HOSTS) @echo $@.$$$$ > $(NFILE) $(CAT) $(HOSTS) | \ $(AWK) '$$1 !~ "#" { print $$1"\t"$$0 }' $^ \ - | $(DBLOAD) -i $(HOSTS) -o $(YPMAPDIR)/$@ - $(TMP) + | $(DBLOAD) ${B} -i $(HOSTS) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @$(DBLOAD) -c @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi @@ -483,7 +483,7 @@ master.passwd.byname: $(MASTER) @echo $@.$$$$ > $(NFILE) $(CAT) $(MASTER) | \ $(AWK) -F: '{ if ($$1 != "+") print $$1"\t"$$0 }' $^ \ - | $(DBLOAD) -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) + | $(DBLOAD) ${S} -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @$(DBLOAD) -c @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi @@ -495,7 +495,7 @@ master.passwd.byuid: $(MASTER) @echo $@.$$$$ > $(NFILE) $(CAT) $(MASTER) | \ $(AWK) -F: '{ if ($$1 != "+") print $$3"\t"$$0 }' $^ \ - | $(DBLOAD) -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) + | $(DBLOAD) ${S} -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @$(DBLOAD) -c @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi |