summaryrefslogtreecommitdiffstats
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-02-01 23:05:36 +0000
committerwpaul <wpaul@FreeBSD.org>1995-02-01 23:05:36 +0000
commitf3d5354cdddcda3a4ee802329d43d06480be08b0 (patch)
treedb249694738324bd9d340b0a12f18310937a92ac /gnu/usr.sbin
parent4682bba3f2a9b0903935ea2ffe9a792e38945f7b (diff)
downloadFreeBSD-src-f3d5354cdddcda3a4ee802329d43d06480be08b0.zip
FreeBSD-src-f3d5354cdddcda3a4ee802329d43d06480be08b0.tar.gz
/var/yp/Makefile doesn't create passwd file from master.passwd file
correctly (specified wrong fields to awk). Note that the files in question are noe the local /etc/master.passwd and /etc/passwd files: this Makefile expects there to be a seperate master.passwd file under /var/yp for NIS database creation.
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/Makefile.yp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.sbin/ypserv/Makefile.yp b/gnu/usr.sbin/ypserv/Makefile.yp
index 564b01e..347d93b 100644
--- a/gnu/usr.sbin/ypserv/Makefile.yp
+++ b/gnu/usr.sbin/ypserv/Makefile.yp
@@ -235,11 +235,11 @@ $(PASSWD): $(MASTER)
@if [ ! $(UNSECURE) ]; then \
$(RCAT) $(MASTER) | \
$(AWK) -F: '{if ($$1 != "+") \
- print $$1":*:"$$3":"$$7":"$$8":"$$9":"$$10}' $^ \
+ print $$1":*:"$$3":"$$4":"$$8":"$$9":"$$10}' $^ \
> $(PASSWD) ; \
else $(RCAT) $(MASTER) | \
$(AWK) -F: '{if ($$1 != "+") \
- print $$1":"$$2":"$$3":"$$7":"$$8":"$$9":"$$10}' $^ \
+ print $$1":"$$2":"$$3":"$$4":"$$8":"$$9":"$$10}' $^ \
> $(PASSWD) ; fi
OpenPOWER on IntegriCloud