Date: Thu, 19 Jul 2001 13:13:14 +0200 (CEST) From: Harti Brandt <brandt@fokus.gmd.de> To: <dd@freebsd.org> Cc: <hackers@freebsd.org> Subject: ypbind broken... Message-ID: <20010719130934.K35300-100000@beagle.fokus.gmd.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010719130934.K35300-100000>