From owner-freebsd-hackers Thu Jul 19 4:13:19 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mailhub.fokus.gmd.de (mailhub.fokus.gmd.de [193.174.154.14]) by hub.freebsd.org (Postfix) with ESMTP id 7FE6837B403; Thu, 19 Jul 2001 04:13:15 -0700 (PDT) (envelope-from brandt@fokus.gmd.de) Received: from beagle (beagle [193.175.132.100]) by mailhub.fokus.gmd.de (8.8.8/8.8.8) with ESMTP id NAA01678; Thu, 19 Jul 2001 13:13:14 +0200 (MET DST) Date: Thu, 19 Jul 2001 13:13:14 +0200 (CEST) From: Harti Brandt To: Cc: Subject: ypbind broken... Message-ID: <20010719130934.K35300-100000@beagle.fokus.gmd.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, The last commit to ypbind (1.34) breaks parsing of the -S option. The following patch should fix this. harti Index: ypbind.c =================================================================== RCS file: /usr/ncvs/src/usr.sbin/ypbind/ypbind.c,v retrieving revision 1.34 diff -c -r1.34 ypbind.c *** ypbind.c 2001/07/13 14:10:09 1.34 --- ypbind.c 2001/07/19 11:06:07 *************** *** 415,423 **** ypsetmode = YPSET_LOCAL; else if (strcmp("-s", argv[i]) == 0) ypsecuremode++; ! else if (strcmp("-S", argv[i]) == 0 && argc > i) yp_restricted_mode(argv[i+1]); ! else if (strcmp("-m", argv[i]) == 0) yp_manycast++; else errx(1, "unknown option: %s", argv[i]); --- 415,424 ---- ypsetmode = YPSET_LOCAL; else if (strcmp("-s", argv[i]) == 0) ypsecuremode++; ! else if (strcmp("-S", argv[i]) == 0 && argc > i) { yp_restricted_mode(argv[i+1]); ! i++; ! } else if (strcmp("-m", argv[i]) == 0) yp_manycast++; else errx(1, "unknown option: %s", argv[i]); -- harti brandt, http://www.fokus.gmd.de/research/cc/cats/employees/hartmut.brandt/private brandt@fokus.gmd.de, harti@begemot.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message