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
[EMAIL PROTECTED], [EMAIL PROTECTED]
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message