CVS commit: src/sys/dev/iscsi
Module Name:src Committed By: mhitch Date: Sun Sep 9 06:06:30 UTC 2012 Modified Files: src/sys/dev/iscsi: iscsi_send.c Log Message: Remove an erroneous change that crept in. It was part of an earlier, incorrect fix I had done for writing 64K bytes. It was still in the set of changes mlelstv had committed. I noticed it at the time, but did not think it was problematic - until now. This fixes the ccb corruption I was seeing and fixes PR kern/46896. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/sys/dev/iscsi/iscsi_send.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/iscsi/iscsi_send.c diff -u src/sys/dev/iscsi/iscsi_send.c:1.6 src/sys/dev/iscsi/iscsi_send.c:1.7 --- src/sys/dev/iscsi/iscsi_send.c:1.6 Sun Aug 12 13:26:18 2012 +++ src/sys/dev/iscsi/iscsi_send.c Sun Sep 9 06:06:29 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: iscsi_send.c,v 1.6 2012/08/12 13:26:18 mlelstv Exp $ */ +/* $NetBSD: iscsi_send.c,v 1.7 2012/09/09 06:06:29 mhitch Exp $ */ /*- * Copyright (c) 2004,2005,2006,2011 The NetBSD Foundation, Inc. @@ -1510,7 +1510,6 @@ send_run_xfer(session_t *session, struct ccb-lun += 0x1LL; ccb-cmd[1] += 0x10; #endif - ccb-disp = CCBDISP_SCSIPI; send_command(ccb, CCBDISP_SCSIPI, waitok, FALSE); }
CVS commit: src/external/bsd/libbind/dist
Module Name:src Committed By: christos Date: Sun Sep 9 16:08:31 UTC 2012 Update of /cvsroot/src/external/bsd/libbind/dist In directory ivanova.netbsd.org:/tmp/cvs-serv5305 Log Message: from ftp.isc.org Status: Vendor Tag: ISC Release Tags: libbind-6-0 U src/external/bsd/libbind/dist/COPYRIGHT U src/external/bsd/libbind/dist/CHANGES U src/external/bsd/libbind/dist/Makefile.in U src/external/bsd/libbind/dist/README U src/external/bsd/libbind/dist/aclocal.m4 U src/external/bsd/libbind/dist/api U src/external/bsd/libbind/dist/config.threads.in U src/external/bsd/libbind/dist/config.guess U src/external/bsd/libbind/dist/config.h.in U src/external/bsd/libbind/dist/config.sub U src/external/bsd/libbind/dist/configure U src/external/bsd/libbind/dist/configure.in U src/external/bsd/libbind/dist/install-sh U src/external/bsd/libbind/dist/libtool.m4 U src/external/bsd/libbind/dist/ltmain.sh U src/external/bsd/libbind/dist/mkinstalldirs U src/external/bsd/libbind/dist/port_after.h.in U src/external/bsd/libbind/dist/port_before.h.in U src/external/bsd/libbind/dist/version U src/external/bsd/libbind/dist/bsd/gettimeofday.c U src/external/bsd/libbind/dist/bsd/strcasecmp.c U src/external/bsd/libbind/dist/bsd/writev.c U src/external/bsd/libbind/dist/bsd/strerror.c U src/external/bsd/libbind/dist/bsd/strtoul.c U src/external/bsd/libbind/dist/bsd/daemon.c U src/external/bsd/libbind/dist/bsd/strdup.c U src/external/bsd/libbind/dist/bsd/ftruncate.c U src/external/bsd/libbind/dist/bsd/strpbrk.c U src/external/bsd/libbind/dist/bsd/mktemp.c U src/external/bsd/libbind/dist/bsd/putenv.c U src/external/bsd/libbind/dist/bsd/setenv.c U src/external/bsd/libbind/dist/bsd/readv.c U src/external/bsd/libbind/dist/bsd/utimes.c U src/external/bsd/libbind/dist/bsd/Makefile.in U src/external/bsd/libbind/dist/bsd/strsep.c U src/external/bsd/libbind/dist/bsd/setitimer.c U src/external/bsd/libbind/dist/doc/getipnodebyname.3 U src/external/bsd/libbind/dist/doc/resolver.man5 U src/external/bsd/libbind/dist/doc/getnetent.3 U src/external/bsd/libbind/dist/doc/inet_cidr.cat3 U src/external/bsd/libbind/dist/doc/resolver.3 U src/external/bsd/libbind/dist/doc/gethostbyname.man3 U src/external/bsd/libbind/dist/doc/resolver.cat5 U src/external/bsd/libbind/dist/doc/resolver.5 U src/external/bsd/libbind/dist/doc/irs.conf.cat5 U src/external/bsd/libbind/dist/doc/getaddrinfo.cat3 U src/external/bsd/libbind/dist/doc/hesiod.man3 U src/external/bsd/libbind/dist/doc/getaddrinfo.man3 U src/external/bsd/libbind/dist/doc/hostname.man7 U src/external/bsd/libbind/dist/doc/hesiod.3 U src/external/bsd/libbind/dist/doc/irs.conf.5 U src/external/bsd/libbind/dist/doc/tsig.3 U src/external/bsd/libbind/dist/doc/getnetent.man3 U src/external/bsd/libbind/dist/doc/resolver.cat3 U src/external/bsd/libbind/dist/doc/inet_cidr.man3 U src/external/bsd/libbind/dist/doc/hostname.7 U src/external/bsd/libbind/dist/doc/irs.conf.man5 U src/external/bsd/libbind/dist/doc/getnameinfo.3 U src/external/bsd/libbind/dist/doc/tsig.cat3 U src/external/bsd/libbind/dist/doc/gethostbyname.3 U src/external/bsd/libbind/dist/doc/getipnodebyname.cat3 U src/external/bsd/libbind/dist/doc/Makefile.in U src/external/bsd/libbind/dist/doc/getipnodebyname.man3 U src/external/bsd/libbind/dist/doc/gethostbyname.cat3 U src/external/bsd/libbind/dist/doc/getnameinfo.cat3 U src/external/bsd/libbind/dist/doc/inet_cidr.3 U src/external/bsd/libbind/dist/doc/hostname.cat7 U src/external/bsd/libbind/dist/doc/tsig.man3 U src/external/bsd/libbind/dist/doc/getnetent.cat3 U src/external/bsd/libbind/dist/doc/hesiod.cat3 U src/external/bsd/libbind/dist/doc/getnameinfo.man3 U src/external/bsd/libbind/dist/doc/resolver.man3 U src/external/bsd/libbind/dist/doc/getaddrinfo.3 U src/external/bsd/libbind/dist/dst/dst_api.c U src/external/bsd/libbind/dist/dst/dst_internal.h U src/external/bsd/libbind/dist/dst/md5_locl.h U src/external/bsd/libbind/dist/dst/support.c U src/external/bsd/libbind/dist/dst/md5.h U src/external/bsd/libbind/dist/dst/md5_dgst.c U src/external/bsd/libbind/dist/dst/hmac_link.c U src/external/bsd/libbind/dist/dst/Makefile.in U src/external/bsd/libbind/dist/include/irp.h U src/external/bsd/libbind/dist/include/resolv_mt.h U src/external/bsd/libbind/dist/include/irs.h U src/external/bsd/libbind/dist/include/netdb.h U src/external/bsd/libbind/dist/include/res_update.h U src/external/bsd/libbind/dist/include/hesiod.h U src/external/bsd/libbind/dist/include/Makefile.in U src/external/bsd/libbind/dist/include/netgroup.h U src/external/bsd/libbind/dist/include/fd_setsize.h U src/external/bsd/libbind/dist/include/resolv.h U src/external/bsd/libbind/dist/include/isc/platform.h.in U src/external/bsd/libbind/dist/include/isc/eventlib.h U src/external/bsd/libbind/dist/include/isc/list.h U src/external/bsd/libbind/dist/include/isc/heap.h U src/external/bsd/libbind/dist/include/isc/dst.h U src/external/bsd/libbind/dist/include/isc/assertions.h U
CVS commit: src/share/man/man5
Module Name:src Committed By: christos Date: Sun Sep 9 16:38:52 UTC 2012 Modified Files: src/share/man/man5: resolv.conf.5 Log Message: document missing resolv.conf options To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/share/man/man5/resolv.conf.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man5/resolv.conf.5 diff -u src/share/man/man5/resolv.conf.5:1.27 src/share/man/man5/resolv.conf.5:1.28 --- src/share/man/man5/resolv.conf.5:1.27 Sun Aug 21 09:27:45 2011 +++ src/share/man/man5/resolv.conf.5 Sun Sep 9 12:38:52 2012 @@ -1,4 +1,4 @@ -.\ $NetBSD: resolv.conf.5,v 1.27 2011/08/21 13:27:45 wiz Exp $ +.\ $NetBSD: resolv.conf.5,v 1.28 2012/09/09 16:38:52 christos Exp $ .\ .\ Copyright (c) 1986, 1991 The Regents of the University of California. .\ All rights reserved. @@ -29,7 +29,7 @@ .\ .\ @(#)resolver.5 5.12 (Berkeley) 5/10/91 .\ -.Dd August 21, 2010 +.Dd September 9, 2012 .Dt RESOLV.CONF 5 .Os .Sh NAME @@ -135,11 +135,48 @@ The syntax is: .Sy options option ... .Pp where option is one of the following: -.Bl -tag -width insecure1 +.Bl -tag -width no-check-names .It Sy debug enable debugging information, by setting RES_DEBUG in _res.options (see .Xr resolver 3 ) . +.It Sy ndots:n +sets a threshold for the number of dots which +must appear in a name given to res_query (see +.Xr resolver 3 ) +before an initial absolute query will be made. +The default for n is 1, meaning that if there are any +dots in a name, the name will be tried first as an absolute +name before any search list elements are appended to it. +.It Sy timeout:n +sets the amount of time the resolver will wait for a response from a remote +name server before retrying the query via a different name server. Measured in +seconds, the default is +.Dv RES_TIMEOUT +(see +.Pa resolv.h ) . +.It Sy attempts:n +sets the number of times the resolver will send a query to its name servers +before giving up and returning an error to the calling application. The +default is +.Dv RES_DFLRETRY +(see +.Pa resolv.h ) . +.It Sy rotate +sets +.Dv RES_ROTATE +in +.Ft _res.options , +which causes round robin selection of nameservers from among those listed. +This has the effect of spreading the query load among all listed servers, +rather than having all clients try the first listed server first every time. +.It Sy no-check-names +sets +.Dv RES_NOCHECKNAME +in +.Ft _res.options , +which disables the modern BIND checking of incoming host names and mail names +for invalid characters such as underscore (_), non-ASCII, or control characters. .It Sy edns0 attach OPT pseudo-RR for ENDS0 extension specified in RFC 2671, to inform DNS server of our receive buffer size. @@ -163,14 +200,22 @@ servers' address. Do not check if the query section of the reply packet is equal to that of the query packet. For testing purposes only. -.It Sy ndots:n -sets a threshold for the number of dots which -must appear in a name given to res_query (see -.Xr resolver 3 ) -before an initial absolute query will be made. -The default for n is 1, meaning that if there are any -dots in a name, the name will be tried first as an absolute -name before any search list elements are appended to it. +.It Sy no-tld-query +sets +.Dv RES_NOTLDQUERY +in +.Ft _res.options . +This option causes +.Fn res_nsearch +to not attempt to resolve a unqualified name as if it were a top level +domain (TLD). +This option can cause problems if the site has localhost as a TLD rather +than having localhost on one or more elements of the search list. +This option has no effect if neither +.Dv RES_DEFNAMES +or +.Dv RES_DNSRCH +is set. .El .El .Pp
CVS commit: src/lib/libc/net
Module Name:src Committed By: christos Date: Sun Sep 9 16:42:23 UTC 2012 Modified Files: src/lib/libc/net: gethnamaddr.c Log Message: implement no-check-names To generate a diff of this commit: cvs rdiff -u -r1.78 -r1.79 src/lib/libc/net/gethnamaddr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/net/gethnamaddr.c diff -u src/lib/libc/net/gethnamaddr.c:1.78 src/lib/libc/net/gethnamaddr.c:1.79 --- src/lib/libc/net/gethnamaddr.c:1.78 Tue Mar 13 17:13:40 2012 +++ src/lib/libc/net/gethnamaddr.c Sun Sep 9 12:42:23 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: gethnamaddr.c,v 1.78 2012/03/13 21:13:40 christos Exp $ */ +/* $NetBSD: gethnamaddr.c,v 1.79 2012/09/09 16:42:23 christos Exp $ */ /* * ++Copyright++ 1985, 1988, 1993 @@ -57,7 +57,7 @@ static char sccsid[] = @(#)gethostnamadr.c 8.1 (Berkeley) 6/4/93; static char rcsid[] = Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ; #else -__RCSID($NetBSD: gethnamaddr.c,v 1.78 2012/03/13 21:13:40 christos Exp $); +__RCSID($NetBSD: gethnamaddr.c,v 1.79 2012/09/09 16:42:23 christos Exp $); #endif #endif /* LIBC_SCCS and not lint */ @@ -101,6 +101,12 @@ __weak_alias(gethostbyname,_gethostbynam __weak_alias(gethostent,_gethostent) #endif +#define maybe_ok(res, nm, ok) (((res)-options RES_NOCHECKNAME) != 0U || \ + (ok)(nm) != 0) +#define maybe_hnok(res, hn) maybe_ok((res), (hn), res_hnok) +#define maybe_dnok(res, dn) maybe_ok((res), (dn), res_dnok) + + #define MAXALIASES 35 #define MAXADDRS 35 @@ -258,7 +264,7 @@ getanswer(const querybuf *answer, int an return NULL; } n = dn_expand(answer-buf, eom, cp, bp, (int)(ep - bp)); - if ((n 0) || !(*name_ok)(bp)) { + if ((n 0) || !maybe_ok(res, bp, name_ok)) { h_errno = NO_RECOVERY; return NULL; } @@ -288,7 +294,7 @@ getanswer(const querybuf *answer, int an had_error = 0; while (ancount-- 0 cp eom !had_error) { n = dn_expand(answer-buf, eom, cp, bp, (int)(ep - bp)); - if ((n 0) || !(*name_ok)(bp)) { + if ((n 0) || !maybe_ok(res, bp, name_ok)) { had_error++; continue; } @@ -311,7 +317,7 @@ getanswer(const querybuf *answer, int an if (ap = host_aliases[MAXALIASES-1]) continue; n = dn_expand(answer-buf, eom, cp, tbuf, (int)sizeof tbuf); - if ((n 0) || !(*name_ok)(tbuf)) { + if ((n 0) || !maybe_ok(res, tbuf, name_ok)) { had_error++; continue; } @@ -341,7 +347,7 @@ getanswer(const querybuf *answer, int an } if (qtype == T_PTR type == T_CNAME) { n = dn_expand(answer-buf, eom, cp, tbuf, (int)sizeof tbuf); - if (n 0 || !res_dnok(tbuf)) { + if (n 0 || !maybe_dnok(res, tbuf)) { had_error++; continue; } @@ -379,7 +385,7 @@ getanswer(const querybuf *answer, int an continue; /* XXX - had_error++ ? */ } n = dn_expand(answer-buf, eom, cp, bp, (int)(ep - bp)); - if ((n 0) || !res_hnok(bp)) { + if ((n 0) || !maybe_hnok(res, bp)) { had_error++; break; }
CVS commit: src/sbin/mount_ptyfs
Module Name:src Committed By: dholland Date: Sun Sep 9 17:09:51 UTC 2012 Modified Files: src/sbin/mount_ptyfs: mount_ptyfs.8 Log Message: ptyfs hasn't been experimental in a long time. (noticed by blymn) To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sbin/mount_ptyfs/mount_ptyfs.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/mount_ptyfs/mount_ptyfs.8 diff -u src/sbin/mount_ptyfs/mount_ptyfs.8:1.8 src/sbin/mount_ptyfs/mount_ptyfs.8:1.9 --- src/sbin/mount_ptyfs/mount_ptyfs.8:1.8 Wed Mar 18 10:46:58 2009 +++ src/sbin/mount_ptyfs/mount_ptyfs.8 Sun Sep 9 17:09:51 2012 @@ -1,4 +1,4 @@ -.\ $NetBSD: mount_ptyfs.8,v 1.8 2009/03/18 10:46:58 wiz Exp $ +.\ $NetBSD: mount_ptyfs.8,v 1.9 2012/09/09 17:09:51 dholland Exp $ .\ .\ .\ Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -112,4 +112,3 @@ utility first appeared in .Nx 3.0 . .Sh BUGS This filesystem may not be NFS-exported. -This filesystem is experimental.
CVS commit: src/share/man/man5
Module Name:src Committed By: wiz Date: Sun Sep 9 17:11:23 UTC 2012 Modified Files: src/share/man/man5: resolv.conf.5 Log Message: Whitespace and formatting cleanups. To generate a diff of this commit: cvs rdiff -u -r1.28 -r1.29 src/share/man/man5/resolv.conf.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man5/resolv.conf.5 diff -u src/share/man/man5/resolv.conf.5:1.28 src/share/man/man5/resolv.conf.5:1.29 --- src/share/man/man5/resolv.conf.5:1.28 Sun Sep 9 16:38:52 2012 +++ src/share/man/man5/resolv.conf.5 Sun Sep 9 17:11:23 2012 @@ -1,4 +1,4 @@ -.\ $NetBSD: resolv.conf.5,v 1.28 2012/09/09 16:38:52 christos Exp $ +.\ $NetBSD: resolv.conf.5,v 1.29 2012/09/09 17:11:23 wiz Exp $ .\ .\ Copyright (c) 1986, 1991 The Regents of the University of California. .\ All rights reserved. @@ -150,18 +150,18 @@ dots in a name, the name will be tried f name before any search list elements are appended to it. .It Sy timeout:n sets the amount of time the resolver will wait for a response from a remote -name server before retrying the query via a different name server. Measured in -seconds, the default is +name server before retrying the query via a different name server. +Measured in seconds, the default is .Dv RES_TIMEOUT (see -.Pa resolv.h ) . +.Aq Pa resolv.h ) . .It Sy attempts:n sets the number of times the resolver will send a query to its name servers -before giving up and returning an error to the calling application. The -default is +before giving up and returning an error to the calling application. +The default is .Dv RES_DFLRETRY (see -.Pa resolv.h ) . +.Aq Pa resolv.h ) . .It Sy rotate sets .Dv RES_ROTATE @@ -176,7 +176,9 @@ sets in .Ft _res.options , which disables the modern BIND checking of incoming host names and mail names -for invalid characters such as underscore (_), non-ASCII, or control characters. +for invalid characters such as underscore +.Pq Sq _ , +non-ASCII, or control characters. .It Sy edns0 attach OPT pseudo-RR for ENDS0 extension specified in RFC 2671, to inform DNS server of our receive buffer size. @@ -207,9 +209,11 @@ in .Ft _res.options . This option causes .Fn res_nsearch -to not attempt to resolve a unqualified name as if it were a top level +to not attempt to resolve a unqualified name as if it were a top level domain (TLD). -This option can cause problems if the site has localhost as a TLD rather +This option can cause problems if the site has +.Dq localhost +as a TLD rather than having localhost on one or more elements of the search list. This option has no effect if neither .Dv RES_DEFNAMES @@ -271,8 +275,8 @@ resides in .%A Michael J. Karels .%T Name Server Operations Guide for BIND .%N Release 4.9.4 -.%I CSRG, -.%I Department of Electrical Engineering and Computer Sciences, +.%I CSRG , +.%I Department of Electrical Engineering and Computer Sciences , .%I University of California, Berkeley .%D July 16, 1996 .%U http://www.dns.net/dnsrd/docs/bog/bog.html
CVS commit: src/sbin/mount_ptyfs
Module Name:src Committed By: wiz Date: Sun Sep 9 17:11:49 UTC 2012 Modified Files: src/sbin/mount_ptyfs: mount_ptyfs.8 Log Message: Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sbin/mount_ptyfs/mount_ptyfs.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/mount_ptyfs/mount_ptyfs.8 diff -u src/sbin/mount_ptyfs/mount_ptyfs.8:1.9 src/sbin/mount_ptyfs/mount_ptyfs.8:1.10 --- src/sbin/mount_ptyfs/mount_ptyfs.8:1.9 Sun Sep 9 17:09:51 2012 +++ src/sbin/mount_ptyfs/mount_ptyfs.8 Sun Sep 9 17:11:49 2012 @@ -1,4 +1,4 @@ -.\ $NetBSD: mount_ptyfs.8,v 1.9 2012/09/09 17:09:51 dholland Exp $ +.\ $NetBSD: mount_ptyfs.8,v 1.10 2012/09/09 17:11:49 wiz Exp $ .\ .\ .\ Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -28,7 +28,7 @@ .\ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\ POSSIBILITY OF SUCH DAMAGE. .\ -.Dd March 15, 2009 +.Dd September 9, 2012 .Dt MOUNT_PTYFS 8 .Os .Sh NAME
CVS commit: src/include
Module Name:src Committed By: christos Date: Sun Sep 9 18:03:17 UTC 2012 Modified Files: src/include: resolv.h Log Message: make the default to not check names. To generate a diff of this commit: cvs rdiff -u -r1.38 -r1.39 src/include/resolv.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/include/resolv.h diff -u src/include/resolv.h:1.38 src/include/resolv.h:1.39 --- src/include/resolv.h:1.38 Sat Oct 24 13:23:34 2009 +++ src/include/resolv.h Sun Sep 9 14:03:17 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: resolv.h,v 1.38 2009/10/24 17:23:34 christos Exp $ */ +/* $NetBSD: resolv.h,v 1.39 2012/09/09 18:03:17 christos Exp $ */ /* * Portions Copyright (C) 2004, 2005, 2008, 2009 Internet Systems Consortium, Inc. (ISC) @@ -256,7 +256,7 @@ union res_sockaddr_union { #define RES_NO_NIBBLE2 0x8000 /*% disable alternate nibble lookup */ #define RES_DEFAULT (RES_RECURSE | RES_DEFNAMES | \ - RES_DNSRCH | RES_NO_NIBBLE2) + RES_DNSRCH | RES_NO_NIBBLE2 | RES_NOCHECKNAME) /*% * Resolver pfcode values. Used by dig.
CVS commit: src/lib/libc/resolv
Module Name:src Committed By: christos Date: Sun Sep 9 18:04:26 UTC 2012 Modified Files: src/lib/libc/resolv: res_init.c Log Message: add a check-names option, now that the default is no-check-names To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/lib/libc/resolv/res_init.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/lib/libc/resolv/res_init.c diff -u src/lib/libc/resolv/res_init.c:1.25 src/lib/libc/resolv/res_init.c:1.26 --- src/lib/libc/resolv/res_init.c:1.25 Tue Mar 20 13:44:18 2012 +++ src/lib/libc/resolv/res_init.c Sun Sep 9 14:04:26 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: res_init.c,v 1.25 2012/03/20 17:44:18 matt Exp $ */ +/* $NetBSD: res_init.c,v 1.26 2012/09/09 18:04:26 christos Exp $ */ /* * Copyright (c) 1985, 1989, 1993 @@ -76,7 +76,7 @@ static const char sccsid[] = @(#)res_init.c 8.1 (Berkeley) 6/7/93; static const char rcsid[] = Id: res_init.c,v 1.26 2008/12/11 09:59:00 marka Exp; #else -__RCSID($NetBSD: res_init.c,v 1.25 2012/03/20 17:44:18 matt Exp $); +__RCSID($NetBSD: res_init.c,v 1.26 2012/09/09 18:04:26 christos Exp $); #endif #endif /* LIBC_SCCS and not lint */ @@ -678,6 +678,9 @@ res_setoptions(res_state statp, const ch } else if (!strncmp(cp, no-check-names, sizeof(no-check-names) - 1)) { statp-options |= RES_NOCHECKNAME; + } else if (!strncmp(cp, check-names, +sizeof(check-names) - 1)) { + statp-options = ~RES_NOCHECKNAME; } #ifdef RES_USE_EDNS0 else if (!strncmp(cp, edns0, sizeof(edns0) - 1)) {
CVS commit: src/share/man/man5
Module Name:src Committed By: christos Date: Sun Sep 9 18:09:24 UTC 2012 Modified Files: src/share/man/man5: resolv.conf.5 Log Message: default to not checking host and mail names per rfc-2181 To generate a diff of this commit: cvs rdiff -u -r1.29 -r1.30 src/share/man/man5/resolv.conf.5 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/share/man/man5/resolv.conf.5 diff -u src/share/man/man5/resolv.conf.5:1.29 src/share/man/man5/resolv.conf.5:1.30 --- src/share/man/man5/resolv.conf.5:1.29 Sun Sep 9 13:11:23 2012 +++ src/share/man/man5/resolv.conf.5 Sun Sep 9 14:09:24 2012 @@ -1,4 +1,4 @@ -.\ $NetBSD: resolv.conf.5,v 1.29 2012/09/09 17:11:23 wiz Exp $ +.\ $NetBSD: resolv.conf.5,v 1.30 2012/09/09 18:09:24 christos Exp $ .\ .\ Copyright (c) 1986, 1991 The Regents of the University of California. .\ All rights reserved. @@ -179,6 +179,14 @@ which disables the modern BIND checking for invalid characters such as underscore .Pq Sq _ , non-ASCII, or control characters. +This is the default. +.It Sy check-names +clears +.Dv RES_NOCHECKNAME +in +.Ft _res.options , +which enables the modern BIND checking of incoming host names and mail names +as described above. .It Sy edns0 attach OPT pseudo-RR for ENDS0 extension specified in RFC 2671, to inform DNS server of our receive buffer size.
CVS commit: src/sys/dev/usb
Module Name:src Committed By: gsutre Date: Sun Sep 9 20:23:38 UTC 2012 Modified Files: src/sys/dev/usb: uhub.c Log Message: In uhub_childdet, do not free the array of sub-devices if there is none. This prevents a kernel panic at shutdown on my laptop. To generate a diff of this commit: cvs rdiff -u -r1.117 -r1.118 src/sys/dev/usb/uhub.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/dev/usb/uhub.c diff -u src/sys/dev/usb/uhub.c:1.117 src/sys/dev/usb/uhub.c:1.118 --- src/sys/dev/usb/uhub.c:1.117 Mon Mar 12 02:44:17 2012 +++ src/sys/dev/usb/uhub.c Sun Sep 9 20:23:38 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: uhub.c,v 1.117 2012/03/12 02:44:17 mrg Exp $ */ +/* $NetBSD: uhub.c,v 1.118 2012/09/09 20:23:38 gsutre Exp $ */ /* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */ /* @@ -36,7 +36,7 @@ */ #include sys/cdefs.h -__KERNEL_RCSID(0, $NetBSD: uhub.c,v 1.117 2012/03/12 02:44:17 mrg Exp $); +__KERNEL_RCSID(0, $NetBSD: uhub.c,v 1.118 2012/09/09 20:23:38 gsutre Exp $); #include opt_usb.h @@ -671,7 +671,7 @@ uhub_childdet(device_t self, device_t ch nports = devhub-hub-hubdesc.bNbrPorts; for (port = 0; port nports; port++) { dev = devhub-hub-ports[port].device; - if (!dev) + if (!dev || dev-subdevlen == 0) continue; for (i = 0; i dev-subdevlen; i++) { if (dev-subdevs[i] == child) {
CVS commit: src/sbin/ping6
Module Name:src Committed By: msaitoh Date: Mon Sep 10 04:32:24 UTC 2012 Modified Files: src/sbin/ping6: ping6.c Log Message: Accept -s 0 To generate a diff of this commit: cvs rdiff -u -r1.80 -r1.81 src/sbin/ping6/ping6.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sbin/ping6/ping6.c diff -u src/sbin/ping6/ping6.c:1.80 src/sbin/ping6/ping6.c:1.81 --- src/sbin/ping6/ping6.c:1.80 Wed Jan 4 16:09:42 2012 +++ src/sbin/ping6/ping6.c Mon Sep 10 04:32:24 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ping6.c,v 1.80 2012/01/04 16:09:42 drochner Exp $ */ +/* $NetBSD: ping6.c,v 1.81 2012/09/10 04:32:24 msaitoh Exp $ */ /* $KAME: ping6.c,v 1.164 2002/11/16 14:05:37 itojun Exp $ */ /* @@ -77,7 +77,7 @@ static char sccsid[] = @(#)ping.c 8.1 ( #else #include sys/cdefs.h #ifndef lint -__RCSID($NetBSD: ping6.c,v 1.80 2012/01/04 16:09:42 drochner Exp $); +__RCSID($NetBSD: ping6.c,v 1.81 2012/09/10 04:32:24 msaitoh Exp $); #endif #endif @@ -504,7 +504,7 @@ main(int argc, char *argv[]) break; case 's': /* size of packet to send */ datalen = strtol(optarg, e, 10); - if (datalen = 0 || *optarg == '\0' || *e != '\0') + if (datalen 0 || *optarg == '\0' || *e != '\0') errx(1, illegal datalen value -- %s, optarg); if (datalen MAXDATALEN) { errx(1,