From owner-cvs-usrsbin Thu Feb 12 19:39:19 1998 Return-Path: Received: (from daemon@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA09546 for cvs-usrsbin-outgoing; Thu, 12 Feb 1998 19:39:19 -0800 (PST) (envelope-from owner-cvs-usrsbin) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA09490; Thu, 12 Feb 1998 19:38:58 -0800 (PST) (envelope-from wpaul@FreeBSD.org) From: Bill Paul Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id TAA27079; Thu, 12 Feb 1998 19:38:44 -0800 (PST) Date: Thu, 12 Feb 1998 19:38:44 -0800 (PST) Message-Id: <199802130338.TAA27079@freefall.freebsd.org> To: cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: cvs commit: src/usr.sbin/ypserv Makefile.yp Sender: owner-cvs-usrsbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 1998/02/12 19:38:43 PST Modified files: usr.sbin/ypserv Makefile.yp Log: Close PR #2206: fix the services.byname target so that it can handle /etc/services entries with any protocol instead of just udp and tcp. Rather thani having the awk script explicitly search for 'udp' or 'tcp' in the second field using index(), use split() to break up the field at the '/' character if it exists, which extracts the protocol from the field no matter what it is. PR: 2206 Revision Changes Path 1.21 +7 -5 src/usr.sbin/ypserv/Makefile.yp