/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.
This commit is contained in:
Bill Paul 1995-02-01 23:05:36 +00:00
parent 70008bb125
commit 7870fc7fdb

View File

@ -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