From owner-freebsd-bugs Tue Sep 2 08:50:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA13004 for bugs-outgoing; Tue, 2 Sep 1997 08:50:05 -0700 (PDT) Received: (from gnats@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA12991; Tue, 2 Sep 1997 08:50:02 -0700 (PDT) Resent-Date: Tue, 2 Sep 1997 08:50:02 -0700 (PDT) Resent-Message-Id: <199709021550.IAA12991@hub.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@FreeBSD.ORG, Jonny@mailhost.coppe.ufrj.br Received: from gaia.coppe.ufrj.br ([146.164.5.200]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA12801 for ; Tue, 2 Sep 1997 08:46:00 -0700 (PDT) Received: (from root@localhost) by gaia.coppe.ufrj.br (8.8.7/8.8.7) id MAA00237; Tue, 2 Sep 1997 12:45:25 -0300 (EST) Message-Id: <199709021545.MAA00237@gaia.coppe.ufrj.br> Date: Tue, 2 Sep 1997 12:45:25 -0300 (EST) From: Joao Carlos Mendes Luis Reply-To: Jonny@mailhost.coppe.ufrj.br To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: bin/4452: YP Makefile changes Sender: owner-freebsd-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >Number: 4452 >Category: bin >Synopsis: /etc/ethers and NIS: Bad comment parser >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Sep 2 08:50:01 PDT 1997 >Last-Modified: >Originator: Joao Carlos Mendes Luis >Organization: COPPE/UFRJ >Release: FreeBSD 2.2-STABLE i386 >Environment: FreeBSD 2.2, YP Server >Description: If one uses comments like this: ############################################ in /etc/ethers, YP Makefile thinks it's an error, instead of a comment. >How-To-Repeat: Edit /etc/ethers, and add the following 3 lines: ##################################################################### # Test # ##################################################################### >Fix: Suggested patch to /var/yp/Makefile: --- Makefile.old Tue Sep 2 12:38:57 1997 +++ Makefile Tue Sep 2 12:37:28 1997 @@ -190,7 +190,7 @@ @echo "Updating $@..." @echo $@.$$$$ > $(NFILE) $(CAT) $(ETHERS) | \ - $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ + $(AWK) '{ if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ print $$2"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ @@ -203,7 +203,7 @@ @echo "Updating $@..." @echo $@.$$$$ > $(NFILE) $(CAT) $(ETHERS) | \ - $(AWK) '{ if ($$1 != "" && $$1 != "#" && $$1 != "+") \ + $(AWK) '{ if ($$1 != "" && $$1 !~ "^#.*" && $$1 != "+") \ print $$1"\t"$$0 }' $^ | $(DBLOAD) -i $(ETHERS) \ -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ >Audit-Trail: >Unformatted: