<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-12613</id>
	<title>Nabble - openbsd dev - tech</title>
	<updated>2009-12-23T03:54:05Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/openbsd-dev---tech-f12613.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/openbsd-dev---tech-f12613.html" />
	<subtitle type="html">Discussion of technical topics for OpenBSD developers and advanced users. This is not a 'tech support' forum, do not use it as such. OpenBSD developers will often make patches to implement new features and other important changes available for public testing through this list.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26901155</id>
	<title>Re: typo /cvs/src/sbin/ping/ping.c</title>
	<published>2009-12-23T03:54:05Z</published>
	<updated>2009-12-23T03:54:05Z</updated>
	<author>
		<name>Igor Sobrado-6</name>
	</author>
	<content type="html">On Wed, Dec 23, 2009 at 12:27 PM, Han Boetes &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26901155&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;han@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; Good finds. To make them even better make sure your mta doesn't
&lt;br&gt;&amp;gt; wrap the lines. ;-)
&lt;br&gt;&lt;br&gt;indeed, good ones. &amp;nbsp;i have sent a diff with all the remaining changes
&lt;br&gt;to jmc@ for review (there is one that has been committed by krw@ as a
&lt;br&gt;part of a larger diff). &amp;nbsp;i will commit them as soon as i get an ok to
&lt;br&gt;them.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-ping-ping.c-tp26896892p26901155.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26901068</id>
	<title>Re: typo /cvs/src/sbin/ping/ping.c</title>
	<published>2009-12-23T03:27:44Z</published>
	<updated>2009-12-23T03:27:44Z</updated>
	<author>
		<name>Han Boetes</name>
	</author>
	<content type="html">Good finds. To make them even better make sure your mta doesn't
&lt;br&gt;wrap the lines. ;-)
&lt;br&gt;&lt;br&gt;Brad Tilley wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; # cvs diff -Nup ping.c
&lt;br&gt;&amp;gt; Index: ping.c
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/sbin/ping/ping.c,v
&lt;br&gt;&amp;gt; retrieving revision 1.85
&lt;br&gt;&amp;gt; diff -N -u -p ping.c
&lt;br&gt;&amp;gt; --- ping.c &amp;nbsp; &amp;nbsp; &amp;nbsp;15 Dec 2009 21:09:43 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.85
&lt;br&gt;&amp;gt; +++ ping.c &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 01:16:59 -0000
&lt;br&gt;&amp;gt; @@ -1085,7 +1085,7 @@ pr_icmph(struct icmp *icp)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Destination Net Unreachable for
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TOS\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ICMP_UNREACH_TOSHOST:
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Desination Host Unreachable for
&lt;br&gt;&amp;gt; TOS\n&amp;quot;);
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Destination Host Unreachable for
&lt;br&gt;&amp;gt; TOS\n&amp;quot;);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ICMP_UNREACH_FILTER_PROHIB:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Route administratively
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prohibited\n&amp;quot;);
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;# Han
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-ping-ping.c-tp26896892p26901068.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896901</id>
	<title>typo /cvs/src/sbin/shutdown/shutdown.c</title>
	<published>2009-12-22T17:24:00Z</published>
	<updated>2009-12-22T17:24:00Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup shutdown.c
&lt;br&gt;Index: shutdown.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/shutdown/shutdown.c,v
&lt;br&gt;retrieving revision 1.35
&lt;br&gt;diff -N -u -p shutdown.c
&lt;br&gt;--- shutdown.c &amp;nbsp;27 Oct 2009 23:59:34 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.35
&lt;br&gt;+++ shutdown.c &amp;nbsp;23 Dec 2009 01:23:31 -0000
&lt;br&gt;@@ -310,7 +310,7 @@ timewarn(int timeleft)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* play some games, just in case wall doesn't come back
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* probably unecessary, given that wall is careful.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* probably unnecessary, given that wall is careful.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!setjmp(alarmbuf)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)signal(SIGALRM, timeout);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-shutdown-shutdown.c-tp26896901p26896901.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896910</id>
	<title>typos /cvs/src/sbin/ping6/ping6.c</title>
	<published>2009-12-22T17:20:44Z</published>
	<updated>2009-12-22T17:20:44Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup ping6.c
&lt;br&gt;Index: ping6.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/ping6/ping6.c,v
&lt;br&gt;retrieving revision 1.76
&lt;br&gt;diff -N -u -p ping6.c
&lt;br&gt;--- ping6.c &amp;nbsp; &amp;nbsp; 2 Nov 2009 22:31:50 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.76
&lt;br&gt;+++ ping6.c &amp;nbsp; &amp;nbsp; 23 Dec 2009 01:20:03 -0000
&lt;br&gt;@@ -566,7 +566,7 @@ main(int argc, char *argv[])
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* let the kerel pass extension headers of incoming packets,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* let the kernel pass extension headers of incoming packets,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* for privileged socket options
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((options &amp; F_VERBOSE) != 0) {
&lt;br&gt;@@ -664,7 +664,7 @@ main(int argc, char *argv[])
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;#endif /*ICMP6_FILTER*/
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; /* let the kerel pass extension headers of incoming packets */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; /* let the kernel pass extension headers of incoming packets */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((options &amp; F_VERBOSE) != 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int opton = 1;
&lt;br&gt;&lt;br&gt;@@ -939,7 +939,7 @@ main(int argc, char *argv[])
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* receive control messages only. Process the
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* exceptions (currently the only possiblity is
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* exceptions (currently the only possibility is
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* a path MTU notification.)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((mtu = get_pathmtu(&amp;m)) &amp;gt; 0) {
&lt;br&gt;@@ -1582,7 +1582,7 @@ pr_ip6opt(void *extbuf)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (type) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Note that inet6_opt_next automatically skips any
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;padding
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* optins.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* options.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case IP6OPT_JUMBO:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; offset = 0;
&lt;br&gt;@@ -1780,7 +1780,7 @@ pr_nodeaddr(struct icmp6_nodeinfo *ni, int nilen)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* In icmp-name-lookups 05 and later, TTL of each returned
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;address
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* is contained in the resposne. We try to detect the version
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* is contained in the response. We try to detect the version
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* by the length of the data, but note that the detection
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;algorithm
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* is incomplete. We assume the latest draft by default.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typos--cvs-src-sbin-ping6-ping6.c-tp26896910p26896910.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896892</id>
	<title>typo /cvs/src/sbin/ping/ping.c</title>
	<published>2009-12-22T17:17:34Z</published>
	<updated>2009-12-22T17:17:34Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup ping.c
&lt;br&gt;Index: ping.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/ping/ping.c,v
&lt;br&gt;retrieving revision 1.85
&lt;br&gt;diff -N -u -p ping.c
&lt;br&gt;--- ping.c &amp;nbsp; &amp;nbsp; &amp;nbsp;15 Dec 2009 21:09:43 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.85
&lt;br&gt;+++ ping.c &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 01:16:59 -0000
&lt;br&gt;@@ -1085,7 +1085,7 @@ pr_icmph(struct icmp *icp)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Destination Net Unreachable for
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TOS\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ICMP_UNREACH_TOSHOST:
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Desination Host Unreachable for
&lt;br&gt;TOS\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Destination Host Unreachable for
&lt;br&gt;TOS\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case ICMP_UNREACH_FILTER_PROHIB:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; (void)printf(&amp;quot;Route administratively
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; prohibited\n&amp;quot;);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-ping-ping.c-tp26896892p26896892.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896825</id>
	<title>typos /cvs/src/sbin/pflogd/privsep.c</title>
	<published>2009-12-22T17:14:23Z</published>
	<updated>2009-12-22T17:14:23Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup privsep.c
&lt;br&gt;Index: privsep.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/pflogd/privsep.c,v
&lt;br&gt;retrieving revision 1.16
&lt;br&gt;diff -N -u -p privsep.c
&lt;br&gt;--- privsep.c &amp;nbsp; 25 Oct 2006 20:55:04 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.16
&lt;br&gt;+++ privsep.c &amp;nbsp; 23 Dec 2009 01:13:04 -0000
&lt;br&gt;@@ -200,7 +200,7 @@ move_log(const char *name)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (1);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* lock destinanion */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* lock destination */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fd = open(ren, O_CREAT|O_EXCL, 0);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (fd &amp;gt;= 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; close(fd);
&lt;br&gt;@@ -323,7 +323,7 @@ may_read(int fd, void *buf, size_t n)
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;/* Read data with the assertion that it all must come through, or
&lt;br&gt;- * else abort the process. &amp;nbsp;Based on atomicio() from openssh. */
&lt;br&gt;+ * else abort the process. &amp;nbsp;Based on atomicio() from OpenSSH. */
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;&amp;nbsp;must_read(int fd, void *buf, size_t n)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;@@ -345,7 +345,7 @@ must_read(int fd, void *buf, size_t n)
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;&amp;nbsp;/* Write data with the assertion that it all has to be written, or
&lt;br&gt;- * else abort the process. &amp;nbsp;Based on atomicio() from openssh. */
&lt;br&gt;+ * else abort the process. &amp;nbsp;Based on atomicio() from OpenSSH. */
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;&amp;nbsp;must_write(int fd, void *buf, size_t n)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typos--cvs-src-sbin-pflogd-privsep.c-tp26896825p26896825.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896791</id>
	<title>typo /cvs/src/sbin/pfctl/pfctl_parser.c</title>
	<published>2009-12-22T17:10:31Z</published>
	<updated>2009-12-22T17:10:31Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup pfctl_parser.c
&lt;br&gt;Index: pfctl_parser.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/pfctl/pfctl_parser.c,v
&lt;br&gt;retrieving revision 1.253
&lt;br&gt;diff -N -u -p pfctl_parser.c
&lt;br&gt;--- pfctl_parser.c &amp;nbsp; &amp;nbsp; &amp;nbsp;14 Dec 2009 12:31:45 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.253
&lt;br&gt;+++ pfctl_parser.c &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 01:09:45 -0000
&lt;br&gt;@@ -1247,7 +1247,7 @@ ifa_exists(const char *ifa_name)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (iftab == NULL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ifa_load();
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; /* check wether this is a group */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; /* check whether this is a group */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((s = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; err(1, &amp;quot;socket&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bzero(&amp;ifgr, sizeof(ifgr));
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-pfctl-pfctl_parser.c-tp26896791p26896791.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896781</id>
	<title>typo /cvs/src/sbin/pfctl/parse.y</title>
	<published>2009-12-22T17:09:15Z</published>
	<updated>2009-12-22T17:09:15Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup parse.y
&lt;br&gt;Index: parse.y
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/pfctl/parse.y,v
&lt;br&gt;retrieving revision 1.576
&lt;br&gt;diff -N -u -p parse.y
&lt;br&gt;--- parse.y &amp;nbsp; &amp;nbsp; 10 Dec 2009 15:57:20 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.576
&lt;br&gt;+++ parse.y &amp;nbsp; &amp;nbsp; 23 Dec 2009 01:08:38 -0000
&lt;br&gt;@@ -546,7 +546,7 @@ include &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; : INCLUDE STRING &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ;
&lt;br&gt;&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;- * apply to previouslys specified rule: must be careful to note
&lt;br&gt;+ * apply to previously specified rule: must be careful to note
&lt;br&gt;&amp;nbsp; * what that is: pf or nat or binat or rdr
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&amp;nbsp;fakeanchor &amp;nbsp; &amp;nbsp; : fakeanchor '\n'
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-pfctl-parse.y-tp26896781p26896781.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896757</id>
	<title>typo /cvs/src/sbin/pfctl/pfctl_osfp.c</title>
	<published>2009-12-22T17:08:13Z</published>
	<updated>2009-12-22T17:08:13Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup pfctl_osfp.c
&lt;br&gt;Index: pfctl_osfp.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/pfctl/pfctl_osfp.c,v
&lt;br&gt;retrieving revision 1.15
&lt;br&gt;diff -N -u -p pfctl_osfp.c
&lt;br&gt;--- pfctl_osfp.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13 Dec 2006 05:10:15 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.15
&lt;br&gt;+++ pfctl_osfp.c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 01:07:19 -0000
&lt;br&gt;@@ -976,7 +976,7 @@ get_tcpopts(const char *filename, int lineno, const
&lt;br&gt;ch
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (0);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;-/* rip the next field ouf of a formatted config file line */
&lt;br&gt;+/* rip the next field out of a formatted config file line */
&lt;br&gt;&amp;nbsp;char *
&lt;br&gt;&amp;nbsp;get_field(char **line, size_t *len, int *fieldlen)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-pfctl-pfctl_osfp.c-tp26896757p26896757.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896668</id>
	<title>typos /cvs/src/sbin/newfs/mkfs.c</title>
	<published>2009-12-22T16:56:22Z</published>
	<updated>2009-12-22T16:56:22Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup mkfs.c
&lt;br&gt;Index: mkfs.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/newfs/mkfs.c,v
&lt;br&gt;retrieving revision 1.72
&lt;br&gt;diff -N -u -p mkfs.c
&lt;br&gt;--- mkfs.c &amp;nbsp; &amp;nbsp; &amp;nbsp;8 Aug 2008 23:49:53 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.72
&lt;br&gt;+++ mkfs.c &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 00:55:40 -0000
&lt;br&gt;@@ -592,7 +592,7 @@ mkfs(struct partition *pp, char *fsys, int fi, int
&lt;br&gt;fo,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ((char *)fscs) + i);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Update information about this partion in pack label, to that
&lt;br&gt;it may
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Update information about this partition in pack label, so
&lt;br&gt;that it may
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* be updated on disk.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pp-&amp;gt;p_fstype = FS_BSDFFS;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typos--cvs-src-sbin-newfs-mkfs.c-tp26896668p26896668.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896611</id>
	<title>arrayified - consistent usage</title>
	<published>2009-12-22T16:47:25Z</published>
	<updated>2009-12-22T16:47:25Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html">The made up words arrayified and arrayify are found several other times
&lt;br&gt;in this file. In this instance, it is misspelled:
&lt;br&gt;&lt;br&gt;# cvs diff -Nup dump.h
&lt;br&gt;Index: dump.h
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/dump/dump.h,v
&lt;br&gt;retrieving revision 1.16
&lt;br&gt;diff -N -u -p dump.h
&lt;br&gt;--- dump.h &amp;nbsp; &amp;nbsp; &amp;nbsp;3 Jun 2007 20:16:08 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.16
&lt;br&gt;+++ dump.h &amp;nbsp; &amp;nbsp; &amp;nbsp;23 Dec 2009 00:43:27 -0000
&lt;br&gt;@@ -168,7 +168,7 @@ struct dumptime {
&lt;br&gt;&amp;nbsp;struct dumptime *dthead; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* head of the list version */
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp;nddates; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* number of records (might be zero) */
&lt;br&gt;&amp;nbsp;int &amp;nbsp; &amp;nbsp;ddates_in; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* we have read the increment file */
&lt;br&gt;-struct dumpdates **ddatev; &amp;nbsp; &amp;nbsp; /* the arrayfied version */
&lt;br&gt;+struct dumpdates **ddatev; &amp;nbsp; &amp;nbsp; /* the arrayified version */
&lt;br&gt;&amp;nbsp;void &amp;nbsp; initdumptimes(void);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; getdumptime(void);
&lt;br&gt;&amp;nbsp;void &amp;nbsp; putdumptime(void);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/arrayified---consistent-usage-tp26896611p26896611.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896536</id>
	<title>typos in /cvs/src/sbin/disklabel/editor.c</title>
	<published>2009-12-22T16:34:20Z</published>
	<updated>2009-12-22T16:34:20Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup editor.c
&lt;br&gt;Index: editor.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/disklabel/editor.c,v
&lt;br&gt;retrieving revision 1.224
&lt;br&gt;diff -N -u -p editor.c
&lt;br&gt;--- editor.c &amp;nbsp; &amp;nbsp;12 Nov 2009 16:21:03 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.224
&lt;br&gt;+++ editor.c &amp;nbsp; &amp;nbsp;23 Dec 2009 00:33:28 -0000
&lt;br&gt;@@ -715,7 +715,7 @@ editor_add(struct disklabel *lp, char *p)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Increase d_npartitions if necessary. Ensure all new
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;partitions are
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* zero'ed to avoid inadvertant overlaps.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* zero'ed to avoid inadvertent overlaps.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(; lp-&amp;gt;d_npartitions &amp;lt;= partno; lp-&amp;gt;d_npartitions++)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset(&amp;lp-&amp;gt;d_partitions[lp-&amp;gt;d_npartitions], 0,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sizeof(*pp));
&lt;br&gt;@@ -1659,7 +1659,7 @@ editor_help(char *arg)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 'D':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; puts(
&lt;br&gt;&amp;nbsp;&amp;quot;The 'D' command will set the disk label to the default values as
&lt;br&gt;&amp;nbsp;reported\n&amp;quot;
&lt;br&gt;-&amp;quot;by the disk itself. &amp;nbsp;This similates the case where there is no disk
&lt;br&gt;label.\n&amp;quot;);
&lt;br&gt;+&amp;quot;by the disk itself. &amp;nbsp;This simulates the case where there is no disk
&lt;br&gt;label.\n&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 'd':
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; puts(
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typos-in--cvs-src-sbin-disklabel-editor.c-tp26896536p26896536.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896433</id>
	<title>typo /cvs/src/sbin/bioctl/bioctl.c</title>
	<published>2009-12-22T16:24:34Z</published>
	<updated>2009-12-22T16:24:34Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup bioctl.c
&lt;br&gt;Index: bioctl.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/bioctl/bioctl.c,v
&lt;br&gt;retrieving revision 1.86
&lt;br&gt;diff -N -u -p bioctl.c
&lt;br&gt;--- bioctl.c &amp;nbsp; &amp;nbsp;24 Nov 2009 06:06:06 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.86
&lt;br&gt;+++ bioctl.c &amp;nbsp; &amp;nbsp;23 Dec 2009 00:23:53 -0000
&lt;br&gt;@@ -613,7 +613,7 @@ bio_setblink(char *name, char *arg, int blink)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (rv == 0)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; /* if the blink didnt work, try to find something that will */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; /* if the blink didn't work, try to find something that will */
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memset(&amp;bi, 0, sizeof(bi));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bi.bi_cookie = bl.bl_cookie;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-sbin-bioctl-bioctl.c-tp26896433p26896433.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26896395</id>
	<title>comment typo /cvs/src/sbin/fdisk/cmd.c</title>
	<published>2009-12-22T16:19:39Z</published>
	<updated>2009-12-22T16:19:39Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup cmd.c
&lt;br&gt;Index: cmd.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/fdisk/cmd.c,v
&lt;br&gt;retrieving revision 1.43
&lt;br&gt;diff -N -u -p cmd.c
&lt;br&gt;--- cmd.c &amp;nbsp; &amp;nbsp; &amp;nbsp; 8 Feb 2009 18:03:18 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.43
&lt;br&gt;+++ cmd.c &amp;nbsp; &amp;nbsp; &amp;nbsp; 23 Dec 2009 00:18:42 -0000
&lt;br&gt;@@ -294,7 +294,7 @@ Xselect(cmd_t *cmd, disk_t *disk, mbr_t *mbr, mbr_t
&lt;br&gt;*t
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&amp;quot;New MBR at offset %d.\n&amp;quot;, off);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Recursion is beautifull! */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; /* Recursion is beautiful! */
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; USER_modify(disk, tt, off, firstoff);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return (CMD_CONT);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/comment-typo--cvs-src-sbin-fdisk-cmd.c-tp26896395p26896395.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26893542</id>
	<title>Re: [PATCH] /usr/bin/sort posix patch</title>
	<published>2009-12-22T12:00:12Z</published>
	<updated>2009-12-22T12:00:12Z</updated>
	<author>
		<name>Ingo Schwarze</name>
	</author>
	<content type="html">Hi Daniel,
&lt;br&gt;&lt;br&gt;Daniel Dickman wrote on Mon, Dec 21, 2009 at 12:03:28AM -0500:
&lt;br&gt;&lt;br&gt;&amp;gt; The patch below adds support for sort's missing &amp;quot;-C&amp;quot; option (as per 
&lt;br&gt;&amp;gt; POSIX:2008). This option behaves like &amp;quot;-c&amp;quot; except that it suppresses 
&lt;br&gt;&amp;gt; output on STDERR.
&lt;br&gt;&lt;br&gt;This one just got committed (with minimal tweaking of the code
&lt;br&gt;and quite some tweaking of the manual).
&lt;br&gt;&lt;br&gt;Thank you for the patch!
&lt;br&gt;&amp;nbsp; Ingo
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---usr-bin-sort-posix-patch-tp26871975p26893542.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26894140</id>
	<title>Ofertas de viajes</title>
	<published>2009-12-22T11:48:10Z</published>
	<updated>2009-12-22T11:48:10Z</updated>
	<author>
		<name>www.viajesyhospedaje.com.ar</name>
	</author>
	<content type="html">To view the message, please use an HTML compatible email viewer!
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ofertas-de-viajes-tp26894140p26894140.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26882288</id>
	<title>typo /cvs/src/bin/pax/buf_subs.c</title>
	<published>2009-12-21T16:15:57Z</published>
	<updated>2009-12-21T16:15:57Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup buf_subs.c
&lt;br&gt;Index: buf_subs.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/bin/pax/buf_subs.c,v
&lt;br&gt;retrieving revision 1.22
&lt;br&gt;diff -N -u -p buf_subs.c
&lt;br&gt;--- buf_subs.c &amp;nbsp;27 Oct 2009 23:59:22 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.22
&lt;br&gt;+++ buf_subs.c &amp;nbsp;22 Dec 2009 00:15:18 -0000
&lt;br&gt;@@ -943,7 +943,7 @@ buf_flush(int bufcnt)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if (cnt &amp;gt; 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* Oh drat we got a partial write!
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* if format doesnt care about alignment let it
&lt;br&gt;go,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* if format doesn't care about alignment let it
&lt;br&gt;go,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* we warned the user in ar_write().... but this
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;means
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* the last record on this volume violates pax
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;spec....
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-bin-pax-buf_subs.c-tp26882288p26882288.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26882215</id>
	<title>typo /cvs/src/bin/pax/file_subs.c</title>
	<published>2009-12-21T16:14:14Z</published>
	<updated>2009-12-21T16:14:14Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup file_subs.c
&lt;br&gt;Index: file_subs.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/bin/pax/file_subs.c,v
&lt;br&gt;retrieving revision 1.31
&lt;br&gt;diff -N -u -p file_subs.c
&lt;br&gt;--- file_subs.c 27 Oct 2009 23:59:22 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.31
&lt;br&gt;+++ file_subs.c 22 Dec 2009 00:13:27 -0000
&lt;br&gt;@@ -988,7 +988,7 @@ file_flush(int fd, char *fname, int isempt)
&lt;br&gt;&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;&amp;nbsp; * rdfile_close()
&lt;br&gt;- * &amp;nbsp; &amp;nbsp; close a file we have beed reading (to copy or archive). If we
&lt;br&gt;have
&lt;br&gt;+ * &amp;nbsp; &amp;nbsp; close a file we have been reading (to copy or archive). If we
&lt;br&gt;have
&lt;br&gt;&amp;nbsp; * &amp;nbsp; &amp;nbsp; reset access time (tflag) do so (the times are stored in arcn).
&lt;br&gt;&amp;nbsp; */
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-bin-pax-file_subs.c-tp26882215p26882215.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26882180</id>
	<title>typo /cvs/src/bin/pax/cache.c</title>
	<published>2009-12-21T16:13:00Z</published>
	<updated>2009-12-21T16:13:00Z</updated>
	<author>
		<name>Brad Tilley-4</name>
	</author>
	<content type="html"># cvs diff -Nup cache.c
&lt;br&gt;Index: cache.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/bin/pax/cache.c,v
&lt;br&gt;retrieving revision 1.18
&lt;br&gt;diff -N -u -p cache.c
&lt;br&gt;--- cache.c &amp;nbsp; &amp;nbsp; 27 Oct 2009 23:59:22 -0000 &amp;nbsp; &amp;nbsp; &amp;nbsp;1.18
&lt;br&gt;+++ cache.c &amp;nbsp; &amp;nbsp; 22 Dec 2009 00:12:13 -0000
&lt;br&gt;@@ -267,7 +267,7 @@ name_gid(gid_t gid, int frc)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((gr = getgrgid(gid)) == NULL) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* no match for this gid in the local group file, put in
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* a string that is the gid in numberic format
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* a string that is the gid in numeric format
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (ptr == NULL)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return(&amp;quot;&amp;quot;);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/typo--cvs-src-bin-pax-cache.c-tp26882180p26882180.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26881780</id>
	<title>in6.c: typo in comment</title>
	<published>2009-12-21T15:25:09Z</published>
	<updated>2009-12-21T15:25:09Z</updated>
	<author>
		<name>Holger Mikolon</name>
	</author>
	<content type="html">Index: in6.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sys/netinet6/in6.c,v
&lt;br&gt;retrieving revision 1.82
&lt;br&gt;diff -u in6.c
&lt;br&gt;--- in6.c	4 Jun 2009 19:07:21 -0000	1.82
&lt;br&gt;+++ in6.c	21 Dec 2009 23:22:14 -0000
&lt;br&gt;@@ -273,7 +273,7 @@
&lt;br&gt;&amp;nbsp; 		 * route surely exists. &amp;nbsp;With this check, we can avoid to
&lt;br&gt;&amp;nbsp; 		 * delete an interface direct route whose destination is same
&lt;br&gt;&amp;nbsp; 		 * as the address being removed. &amp;nbsp;This can happen when removing
&lt;br&gt;-		 * a subnet-router anycast address on an interface attahced
&lt;br&gt;+		 * a subnet-router anycast address on an interface attached
&lt;br&gt;&amp;nbsp; 		 * to a shared medium.
&lt;br&gt;&amp;nbsp; 		 */
&lt;br&gt;&amp;nbsp; 		rt = rtalloc1(ifa-&amp;gt;ifa_addr, 0, 0);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/in6.c%3A-typo-in-comment-tp26881780p26881780.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26879566</id>
	<title>Distributors are filling cracks and gaps in software systems with simple add-ons</title>
	<published>2009-12-21T12:16:03Z</published>
	<updated>2009-12-21T12:16:03Z</updated>
	<author>
		<name>Robert Skorr</name>
	</author>
	<content type="html">Distributors are filling cracks and gaps in software systems with simple
&lt;br&gt;add-ons
&lt;br&gt;&lt;br&gt;When you purchase a good suit off the rack, it is often tailored to fit your
&lt;br&gt;body.
&lt;br&gt;&lt;br&gt;Unfortunately, &amp;quot;do-all&amp;quot; software systems, like an off-the-rack suit, may not
&lt;br&gt;fit your company perfectly, which can lead to inefficiencies, lack of access
&lt;br&gt;to key data, and even missed profit opportunities.
&lt;br&gt;&lt;br&gt;A tailored solution, as opposed to a full, custom solution:
&lt;br&gt;&lt;br&gt;Increase Sales-Field reps can track orders, inventory and access past
&lt;br&gt;purchases
&lt;br&gt;Save Time and increase versatility-Workers can access data from anywhere
&lt;br&gt;Fewer Service calls-Customers can securely service and access accounts via
&lt;br&gt;web
&lt;br&gt;Instant Credibility-Show professionalism in the field and on the phone
&lt;br&gt;Turn Key Operation-Easy to use, simple to learn and fast to modify
&lt;br&gt;Save Money-save thousands of dollars by not having individual user fees
&lt;br&gt;We have done extensive work with industrial distributors and suppliers to
&lt;br&gt;tailor existing software systems to fit their business. &amp;nbsp;Our existing
&lt;br&gt;framework of components from within the industry means we can deliver a custom
&lt;br&gt;solution that fits your company at about 20% of the usual cost.
&lt;br&gt;&lt;br&gt;Click here to learn more about our experience and references with industrial
&lt;br&gt;distribution and supply.
&lt;br&gt;&lt;br&gt;Sincerely,
&lt;br&gt;&lt;br&gt;Jan Poehland
&lt;br&gt;Comparatio USA, LLC
&lt;br&gt;4517 Minnetonka Blvd.
&lt;br&gt;Suite 303
&lt;br&gt;St. Louis Park, MN 55416
&lt;br&gt;USA
&lt;br&gt;&lt;br&gt;This is a marketing message. &amp;nbsp;We respect your right to be removed from this
&lt;br&gt;marketing campaign. &amp;nbsp;Removal from this email distribution list is
&lt;br&gt;automatically enforced by our email delivery system. Please click here to be
&lt;br&gt;removed.
&lt;br&gt;If this hyperlink comes through in text format or is not visible please hit
&lt;br&gt;reply to this email and type &amp;quot;Remove&amp;quot; in the subject line. &amp;nbsp;If you have any
&lt;br&gt;problems with this removal link please contact Cindy at 800-757-3715 and we
&lt;br&gt;will handle your request immediately.
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Distributors-are-filling-cracks-and-gaps-in-software-systems-with-simple-add-ons-tp26879566p26879566.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26873194</id>
	<title>Re: snmpd: better support for GETBULK</title>
	<published>2009-12-21T04:08:35Z</published>
	<updated>2009-12-21T04:08:35Z</updated>
	<author>
		<name>Alexander Sabourenkov</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;&amp;gt; Could you add few sentences explaining how is it better?
&lt;br&gt;&lt;br&gt;The current implementation
&lt;br&gt;&amp;nbsp; &amp;nbsp; a) does not support nonzero non-repeaters field
&lt;br&gt;&amp;nbsp; &amp;nbsp; b) builds the response in a manner that does not conform to
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;RFC3416#4.2.3 which results in complex client code
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and sometimes retransmission of the same data.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Proposed implementation fixes both issues.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;&lt;br&gt;./lxnt
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/snmpd%3A-better-support-for-GETBULK-tp26842761p26873194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26871975</id>
	<title>[PATCH] /usr/bin/sort posix patch</title>
	<published>2009-12-20T21:03:28Z</published>
	<updated>2009-12-20T21:03:28Z</updated>
	<author>
		<name>Daniel Dickman-2</name>
	</author>
	<content type="html">The patch below adds support for sort's missing &amp;quot;-C&amp;quot; option (as per 
&lt;br&gt;POSIX:2008). This option behaves like &amp;quot;-c&amp;quot; except that it suppresses 
&lt;br&gt;output on STDERR.
&lt;br&gt;&lt;br&gt;Index: extern.h
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/sort/extern.h,v
&lt;br&gt;retrieving revision 1.7
&lt;br&gt;diff -u -r1.7 extern.h
&lt;br&gt;--- extern.h	26 Jun 2003 00:12:39 -0000	1.7
&lt;br&gt;+++ extern.h	21 Dec 2009 04:36:24 -0000
&lt;br&gt;@@ -61,7 +61,8 @@
&lt;br&gt;&amp;nbsp;int	 optval(int, int);
&lt;br&gt;&amp;nbsp;void	 order(union f_handle,
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;int (*)(int, union f_handle, int, RECHEADER *, u_char *, struct field *),
&lt;br&gt;-	 &amp;nbsp; &amp;nbsp;struct field *);
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;struct field *,
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;int c_warn);
&lt;br&gt;&amp;nbsp;void	 putline(RECHEADER *, FILE *);
&lt;br&gt;&amp;nbsp;void	 putrec(RECHEADER *, FILE *);
&lt;br&gt;&amp;nbsp;void	 rd_append(int, union f_handle, int, FILE *, u_char *, u_char *);
&lt;br&gt;Index: msort.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/sort/msort.c,v
&lt;br&gt;retrieving revision 1.22
&lt;br&gt;diff -u -r1.22 msort.c
&lt;br&gt;--- msort.c	27 Oct 2009 23:59:43 -0000	1.22
&lt;br&gt;+++ msort.c	21 Dec 2009 04:48:43 -0000
&lt;br&gt;@@ -232,7 +232,8 @@
&lt;br&gt;&amp;nbsp;void
&lt;br&gt;&amp;nbsp;order(union f_handle infile,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;int (*get)(int, union f_handle, int, RECHEADER *, u_char *, struct field *),
&lt;br&gt;- &amp;nbsp; &amp;nbsp;struct field *ftbl)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;struct field *ftbl,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int c_warn)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	u_char *crec_end, *prec_end, *trec_end;
&lt;br&gt;&amp;nbsp;	int c;
&lt;br&gt;@@ -256,13 +257,17 @@
&lt;br&gt;&amp;nbsp;		while (get(-1, infile, 1, crec, crec_end, ftbl) == 0) {
&lt;br&gt;&amp;nbsp;			if (0 &amp;lt; (c = cmp(prec, crec))) {
&lt;br&gt;&amp;nbsp;				crec-&amp;gt;data[crec-&amp;gt;length-1] = 0;
&lt;br&gt;-				errx(1, &amp;quot;found disorder: %s&amp;quot;,
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp;crec-&amp;gt;data+crec-&amp;gt;offset);
&lt;br&gt;+				c_warn ?
&lt;br&gt;+					errx(1, &amp;quot;found disorder: %s&amp;quot;,
&lt;br&gt;+					 &amp;nbsp; &amp;nbsp;crec-&amp;gt;data+crec-&amp;gt;offset) :
&lt;br&gt;+					exit(1);
&lt;br&gt;&amp;nbsp;			}
&lt;br&gt;&amp;nbsp;			if (UNIQUE &amp;&amp; !c) {
&lt;br&gt;&amp;nbsp;				crec-&amp;gt;data[crec-&amp;gt;length-1] = 0;
&lt;br&gt;-				errx(1, &amp;quot;found non-uniqueness: %s&amp;quot;,
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp;crec-&amp;gt;data+crec-&amp;gt;offset);
&lt;br&gt;+				c_warn ?
&lt;br&gt;+					errx(1, &amp;quot;found non-uniqueness: %s&amp;quot;,
&lt;br&gt;+					 &amp;nbsp; &amp;nbsp;crec-&amp;gt;data+crec-&amp;gt;offset) :
&lt;br&gt;+					exit(1);
&lt;br&gt;&amp;nbsp;			}
&lt;br&gt;&amp;nbsp;			/* Swap pointers so that this record is on place
&lt;br&gt;&amp;nbsp;			 * pointed to by prec and new record is read to place
&lt;br&gt;Index: sort.1
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/sort/sort.1,v
&lt;br&gt;retrieving revision 1.34
&lt;br&gt;diff -u -r1.34 sort.1
&lt;br&gt;--- sort.1	16 Aug 2009 09:41:08 -0000	1.34
&lt;br&gt;+++ sort.1	21 Dec 2009 04:08:01 -0000
&lt;br&gt;@@ -40,7 +40,7 @@
&lt;br&gt;&amp;nbsp;.Nd sort or merge text files
&lt;br&gt;&amp;nbsp;.Sh SYNOPSIS
&lt;br&gt;&amp;nbsp;.Nm sort
&lt;br&gt;-.Op Fl bcdfHimnrsuz
&lt;br&gt;+.Op Fl bCcdfHimnrsuz
&lt;br&gt;&amp;nbsp;.Sm off
&lt;br&gt;&amp;nbsp;.Op Fl k\ \&amp; Ar field1 Op , Ar field2
&lt;br&gt;&amp;nbsp;.Sm on
&lt;br&gt;@@ -74,6 +74,11 @@
&lt;br&gt;&amp;nbsp;.Fl c
&lt;br&gt;&amp;nbsp;produces no output, except the error messages on
&lt;br&gt;&amp;nbsp;.Em stderr .
&lt;br&gt;+.It Fl C
&lt;br&gt;+Same as
&lt;br&gt;+.Fl c
&lt;br&gt;+except that no error message is sent to
&lt;br&gt;+.Em stderr .
&lt;br&gt;&amp;nbsp;.It Fl m
&lt;br&gt;&amp;nbsp;Merge only; the input files are assumed to be pre-sorted.
&lt;br&gt;&amp;nbsp;.It Fl o Ar output
&lt;br&gt;@@ -96,7 +101,9 @@
&lt;br&gt;&amp;nbsp;Unique: suppress all but one in each set of lines having equal keys.
&lt;br&gt;&amp;nbsp;If used with the
&lt;br&gt;&amp;nbsp;.Fl c
&lt;br&gt;-option, also check that there are no lines with duplicate keys.
&lt;br&gt;+or
&lt;br&gt;+.Fl C
&lt;br&gt;+options, also check that there are no lines with duplicate keys.
&lt;br&gt;&amp;nbsp;.El
&lt;br&gt;&amp;nbsp;.Pp
&lt;br&gt;&amp;nbsp;The following options override the default ordering rules.
&lt;br&gt;Index: sort.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/sort/sort.c,v
&lt;br&gt;retrieving revision 1.38
&lt;br&gt;diff -u -r1.38 sort.c
&lt;br&gt;--- sort.c	28 Oct 2009 20:41:39 -0000	1.38
&lt;br&gt;+++ sort.c	21 Dec 2009 04:52:47 -0000
&lt;br&gt;@@ -93,7 +93,7 @@
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int (*get)(int, union f_handle, int, RECHEADER *, u_char *, struct field *);
&lt;br&gt;&amp;nbsp;	int ch, i, stdinflag = 0, tmp = 0;
&lt;br&gt;-	char nfields = 0, cflag = 0, mflag = 0;
&lt;br&gt;+	char nfields = 0, cflag = 0, c_warn = 0, mflag = 0;
&lt;br&gt;&amp;nbsp;	char *outfile, *outpath = 0;
&lt;br&gt;&amp;nbsp;	struct field *fldtab, *ftpos;
&lt;br&gt;&amp;nbsp;	union f_handle filelist;
&lt;br&gt;@@ -111,7 +111,7 @@
&lt;br&gt;&amp;nbsp;	fixit(&amp;argc, argv);
&lt;br&gt;&amp;nbsp;	if (!issetugid() &amp;&amp; (outfile = getenv(&amp;quot;TMPDIR&amp;quot;)))
&lt;br&gt;&amp;nbsp;		tmpdir = outfile;
&lt;br&gt;-	while ((ch = getopt(argc, argv, &amp;quot;bcdfik:mHno:rR:t:T:uy:zs&amp;quot;)) != -1) {
&lt;br&gt;+	while ((ch = getopt(argc, argv, &amp;quot;bCcdfik:mHno:rR:t:T:uy:zs&amp;quot;)) != -1) {
&lt;br&gt;&amp;nbsp;		switch (ch) {
&lt;br&gt;&amp;nbsp;		case 'b': fldtab-&amp;gt;flags |= BI | BT;
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;@@ -159,8 +159,13 @@
&lt;br&gt;&amp;nbsp;		case 'u':
&lt;br&gt;&amp;nbsp;			UNIQUE = 1;
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;+		case 'C':
&lt;br&gt;+			cflag = 1;
&lt;br&gt;+			c_warn = 0;
&lt;br&gt;+			break;
&lt;br&gt;&amp;nbsp;		case 'c':
&lt;br&gt;&amp;nbsp;			cflag = 1;
&lt;br&gt;+			c_warn = 1;
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&amp;nbsp;		case 'm':
&lt;br&gt;&amp;nbsp;			mflag = 1;
&lt;br&gt;@@ -188,7 +193,7 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (cflag &amp;&amp; argc &amp;gt; optind+1)
&lt;br&gt;-		errx(2, &amp;quot;too many input files for -c option&amp;quot;);
&lt;br&gt;+		errx(2, &amp;quot;too many input files for the -c or -C options&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (argc - 2 &amp;gt; optind &amp;&amp; !strcmp(argv[argc-2], &amp;quot;-o&amp;quot;)) {
&lt;br&gt;&amp;nbsp;		outpath = argv[argc-1];
&lt;br&gt;@@ -249,7 +254,7 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (cflag) {
&lt;br&gt;-		order(filelist, get, fldtab);
&lt;br&gt;+		order(filelist, get, fldtab, c_warn);
&lt;br&gt;&amp;nbsp;		/* NOT REACHED */
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -332,7 +337,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (msg != NULL)
&lt;br&gt;&amp;nbsp;		warnx(&amp;quot;%s&amp;quot;, msg);
&lt;br&gt;-	(void)fprintf(stderr, &amp;quot;usage: %s [-bcdfHimnrsuz] &amp;quot;
&lt;br&gt;+	(void)fprintf(stderr, &amp;quot;usage: %s [-bCcdfHimnrsuz] &amp;quot;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;&amp;quot;[-k field1[,field2]] [-o output] [-R char]\n&amp;quot;
&lt;br&gt;&amp;nbsp;	 &amp;nbsp; &amp;nbsp;&amp;quot;\t[-T dir] [-t char] [file ...]\n&amp;quot;, __progname);
&lt;br&gt;&amp;nbsp;	exit(2);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---usr-bin-sort-posix-patch-tp26871975p26871975.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26864846</id>
	<title>Re: [PATCH] /usr/bin/find posix patch</title>
	<published>2009-12-20T08:19:12Z</published>
	<updated>2009-12-20T08:19:12Z</updated>
	<author>
		<name>Ingo Schwarze</name>
	</author>
	<content type="html">Hi Daniel,
&lt;br&gt;&lt;br&gt;Daniel Dickman wrote on Sat, Dec 19, 2009 at 07:53:53PM -0500:
&lt;br&gt;&lt;br&gt;&amp;gt; I think something like the following might be needed for 'find' to adhere 
&lt;br&gt;&amp;gt; to posix a little more closely. The posix spec says that if the mutually 
&lt;br&gt;&amp;gt; exclusive -H and -L options are both specified, the last one specified 
&lt;br&gt;&amp;gt; should override the others.
&lt;br&gt;&lt;br&gt;Thank you, i just committed your patch to find/main.c.
&lt;br&gt;I updated the manual in a different way, though.
&lt;br&gt;&lt;br&gt;Yours,
&lt;br&gt;&amp;nbsp; Ingo
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---usr-bin-find-posix-patch-tp26861230p26864846.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26861230</id>
	<title>[PATCH] /usr/bin/find posix patch</title>
	<published>2009-12-19T16:53:53Z</published>
	<updated>2009-12-19T16:53:53Z</updated>
	<author>
		<name>Daniel Dickman-2</name>
	</author>
	<content type="html">I think something like the following might be needed for 'find' to adhere 
&lt;br&gt;to posix a little more closely. The posix spec says that if the mutually 
&lt;br&gt;exclusive -H and -L options are both specified, the last one specified 
&lt;br&gt;should override the others.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Index: find.1
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/find/find.1,v
&lt;br&gt;retrieving revision 1.74
&lt;br&gt;diff -u -r1.74 find.1
&lt;br&gt;--- find.1	9 Apr 2009 14:30:39 -0000	1.74
&lt;br&gt;+++ find.1	19 Dec 2009 21:48:05 -0000
&lt;br&gt;@@ -138,6 +138,13 @@
&lt;br&gt;&amp;nbsp;.Nm
&lt;br&gt;&amp;nbsp;from descending into directories that have a device number different
&lt;br&gt;&amp;nbsp;than that of the file from which the descent began.
&lt;br&gt;+.Pp
&lt;br&gt;+It is not an error to specify more than one of
&lt;br&gt;+the following mutually exclusive options:
&lt;br&gt;+.Fl H ,
&lt;br&gt;+.Fl L .
&lt;br&gt;+Where more than one of these options is specified,
&lt;br&gt;+the last option given overrides the others.
&lt;br&gt;&amp;nbsp;.El
&lt;br&gt;&amp;nbsp;.Sh PRIMARIES
&lt;br&gt;&amp;nbsp;.Bl -tag -width Ds
&lt;br&gt;Index: main.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /usr/cvs/src/usr.bin/find/main.c,v
&lt;br&gt;retrieving revision 1.25
&lt;br&gt;diff -u -r1.25 main.c
&lt;br&gt;--- main.c	9 Dec 2009 13:59:43 -0000	1.25
&lt;br&gt;+++ main.c	19 Dec 2009 22:20:25 -0000
&lt;br&gt;@@ -75,6 +75,8 @@
&lt;br&gt;&amp;nbsp;		switch(ch) {
&lt;br&gt;&amp;nbsp;		case 'H':
&lt;br&gt;&amp;nbsp;			ftsoptions |= FTS_COMFOLLOW;
&lt;br&gt;+			ftsoptions |= FTS_PHYSICAL;
&lt;br&gt;+			ftsoptions &amp;= ~FTS_LOGICAL;
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&amp;nbsp;		case 'd':
&lt;br&gt;&amp;nbsp;			isdepth = 1;
&lt;br&gt;@@ -84,6 +86,7 @@
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&amp;nbsp;		case 'h':
&lt;br&gt;&amp;nbsp;		case 'L':
&lt;br&gt;+			ftsoptions &amp;= ~FTS_COMFOLLOW;
&lt;br&gt;&amp;nbsp;			ftsoptions &amp;= ~FTS_PHYSICAL;
&lt;br&gt;&amp;nbsp;			ftsoptions |= FTS_LOGICAL;
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH---usr-bin-find-posix-patch-tp26861230p26861230.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26859564</id>
	<title>Re: snmpd: better support for GETBULK</title>
	<published>2009-12-19T15:08:04Z</published>
	<updated>2009-12-19T15:08:04Z</updated>
	<author>
		<name>Jacek Masiulaniec-2</name>
	</author>
	<content type="html">Could you add few sentences explaining how is it better?
&lt;br&gt;&lt;br&gt;On Fri, Dec 18, 2009 at 03:32:32PM +0300, Alexander Sabourenkov wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Index: snmpd.h
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/usr.sbin/snmpd/snmpd.h,v
&lt;br&gt;&amp;gt; retrieving revision 1.25
&lt;br&gt;&amp;gt; diff -u snmpd.h
&lt;br&gt;&amp;gt; --- snmpd.h	6 Jun 2009 18:38:01 -0000	1.25
&lt;br&gt;&amp;gt; +++ snmpd.h	18 Dec 2009 12:10:17 -0000
&lt;br&gt;&amp;gt; @@ -209,9 +209,9 @@
&lt;br&gt;&amp;gt; &amp;nbsp;	long long		 sm_request;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;	long long		 sm_error;
&lt;br&gt;&amp;gt; -#define sm_nonrepeaters		 sm_error
&lt;br&gt;&amp;gt; &amp;nbsp;	long long		 sm_errorindex;
&lt;br&gt;&amp;gt; -#define sm_maxrepetitions	 sm_errorindex
&lt;br&gt;&amp;gt; +	long long		 sm_nonrepeaters;
&lt;br&gt;&amp;gt; +	long long		 sm_maxrepetitions;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;	struct ber_element	*sm_pdu;
&lt;br&gt;&amp;gt; &amp;nbsp;	struct ber_element	*sm_pduend;
&lt;br&gt;&amp;gt; Index: snmpe.c
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/usr.sbin/snmpd/snmpe.c,v
&lt;br&gt;&amp;gt; retrieving revision 1.24
&lt;br&gt;&amp;gt; diff -u snmpe.c
&lt;br&gt;&amp;gt; @@ -477,19 +479,95 @@
&lt;br&gt;&amp;gt; &amp;nbsp;	return (BER_TYPE_OCTETSTRING);
&lt;br&gt;&amp;gt; &amp;nbsp;}
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; +static struct ber_element *
&lt;br&gt;&amp;gt; +snmpe_br_maxreps(struct snmp_message *msg, struct ber_element *start_elm,
&lt;br&gt;&amp;gt; +		 struct ber_oid *start_oid, int len)
&lt;br&gt;&amp;gt; +{
&lt;br&gt;&amp;gt; +	char buf[BUFSIZ];
&lt;br&gt;&amp;gt; +	struct ber_element	*a, *b, *c, *d, *first, *last;
&lt;br&gt;&amp;gt; +	struct ber_oid oids[SNMPD_MAXVARBINDLEN];
&lt;br&gt;&amp;gt; +	int repnum, vb_count, vb_idx = 0;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +	msg-&amp;gt;sm_errorindex = len;
&lt;br&gt;&amp;gt; +	log_debug(&amp;quot;snmpe_br_maxreps: maxreps=%d&amp;quot;, msg-&amp;gt;sm_maxrepetitions);
&lt;br&gt;&amp;gt; +	
&lt;br&gt;&amp;gt; +	/* stuff in the first oid we have already */
&lt;br&gt;&amp;gt; +	bcopy(start_oid, oids, sizeof(*start_oid));
&lt;br&gt;&amp;gt; +	log_debug(&amp;quot;snmpe_br_maxreps: varbind %d, oid %s&amp;quot;, vb_idx,
&lt;br&gt;&amp;gt; +	 &amp;nbsp; &amp;nbsp;smi_oidstring(start_oid, buf, sizeof(buf)));
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +	vb_idx = 1;
&lt;br&gt;&amp;gt; +	a = start_elm;
&lt;br&gt;&amp;gt; +	
&lt;br&gt;&amp;gt; +	/* build a list of oids to iterate over */
&lt;br&gt;&amp;gt; +	while ((a != NULL) &amp;&amp; (a-&amp;gt;be_type != BER_TYPE_EOC)) {
&lt;br&gt;&amp;gt; +		msg-&amp;gt;sm_errorindex ++;
&lt;br&gt;&amp;gt; +		a = a-&amp;gt;be_next;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +		if (a-&amp;gt;be_class != BER_CLASS_UNIVERSAL ||
&lt;br&gt;&amp;gt; +		 &amp;nbsp; &amp;nbsp;a-&amp;gt;be_type != BER_TYPE_SEQUENCE)
&lt;br&gt;&amp;gt; +			continue;
&lt;br&gt;&amp;gt; +		if ((b = a-&amp;gt;be_sub) == NULL)
&lt;br&gt;&amp;gt; +			continue;
&lt;br&gt;&amp;gt; +		if (ber_get_oid(b, &amp;(oids[vb_idx])) != 0)
&lt;br&gt;&amp;gt; +			return NULL;
&lt;br&gt;&amp;gt; +		if (oids[vb_idx].bo_n &amp;lt; BER_MIN_OID_LEN ||
&lt;br&gt;&amp;gt; +		 &amp;nbsp; &amp;nbsp;oids[vb_idx].bo_n &amp;gt; BER_MAX_OID_LEN)
&lt;br&gt;&amp;gt; +			return NULL;
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +		log_debug(&amp;quot;snmpe_br_maxreps: varbind %d, oid %s&amp;quot;, vb_idx,
&lt;br&gt;&amp;gt; +		 &amp;nbsp; &amp;nbsp;smi_oidstring(&amp;(oids[vb_idx]), buf, sizeof(buf)));
&lt;br&gt;&amp;gt; +		vb_idx ++;
&lt;br&gt;&amp;gt; +	}
&lt;br&gt;&amp;gt; +	vb_count = vb_idx;
&lt;br&gt;&amp;gt; +	log_debug(&amp;quot;snmpe_br_maxreps: %d varbinds.&amp;quot;, vb_count);
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; +	msg-&amp;gt;sm_errorindex = 0;
&lt;br&gt;&amp;gt; +	msg-&amp;gt;sm_error = SNMP_ERROR_NONE;
&lt;br&gt;&amp;gt; +	
&lt;br&gt;&amp;gt; +	first = last = NULL;
&lt;br&gt;&amp;gt; +	
&lt;br&gt;&amp;gt; +	for (repnum = 0; repnum &amp;lt; msg-&amp;gt;sm_maxrepetitions; repnum++) {
&lt;br&gt;&amp;gt; +		for(vb_idx=0; vb_idx&amp;lt;vb_count; vb_idx++) {
&lt;br&gt;&amp;gt; +			log_debug(&amp;quot;snmpe_br_maxreps: varbind %d, repnum %d oid %s&amp;quot;, vb_idx, repnum,
&lt;br&gt;&amp;gt; +				smi_oidstring(&amp;(oids[vb_idx]), buf, sizeof(buf)));
&lt;br&gt;&amp;gt; +			
&lt;br&gt;&amp;gt; +			if (oids[vb_idx].bo_n == 0)
&lt;br&gt;&amp;gt; +				continue;
&lt;br&gt;&amp;gt; +			c = ber_add_sequence(NULL);
&lt;br&gt;&amp;gt; +			d = mps_getnextreq(c, &amp;(oids[vb_idx]));
&lt;br&gt;&amp;gt; +			if (d == NULL) {
&lt;br&gt;&amp;gt; +				oids[vb_idx].bo_n = 0;
&lt;br&gt;&amp;gt; +				continue;
&lt;br&gt;&amp;gt; +			}
&lt;br&gt;&amp;gt; +			len += ber_calc_len(c);
&lt;br&gt;&amp;gt; +			if (len &amp;gt; SNMPD_MAXVARBINDLEN) {
&lt;br&gt;&amp;gt; +				log_debug(&amp;quot;len &amp;gt; SNMPD_MAXVARBINDLEN: %d&amp;gt;%d&amp;quot;, len, SNMPD_MAXVARBINDLEN);
&lt;br&gt;&amp;gt; +				ber_free_elements(c);
&lt;br&gt;&amp;gt; +				return first;
&lt;br&gt;&amp;gt; +			}
&lt;br&gt;&amp;gt; +			if (first == NULL)
&lt;br&gt;&amp;gt; +				first = c;
&lt;br&gt;&amp;gt; +			else
&lt;br&gt;&amp;gt; +				last-&amp;gt;be_next = c;
&lt;br&gt;&amp;gt; +			last = c;
&lt;br&gt;&amp;gt; +		}
&lt;br&gt;&amp;gt; +	}
&lt;br&gt;&amp;gt; +	return first;
&lt;br&gt;&amp;gt; +}
&lt;br&gt;&amp;gt; +
&lt;br&gt;&amp;gt; &amp;nbsp;int
&lt;br&gt;&amp;gt; &amp;nbsp;snmpe_parse(struct sockaddr_storage *ss,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;struct ber_element *root, struct snmp_message *msg)
&lt;br&gt;&amp;gt; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp;	struct snmp_stats	*stats = &amp;env-&amp;gt;sc_stats;
&lt;br&gt;&amp;gt; -	struct ber_element	*a, *b, *c, *d, *e, *f, *next, *last;
&lt;br&gt;&amp;gt; +	struct ber_element	*a, *b, *c, *d, *next, *last;
&lt;br&gt;&amp;gt; &amp;nbsp;	const char		*errstr = &amp;quot;invalid message&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;	long long		 ver, req;
&lt;br&gt;&amp;gt; &amp;nbsp;	unsigned long		 type, errval, erridx;
&lt;br&gt;&amp;gt; -	u_int			 class, state, i = 0, j = 0;
&lt;br&gt;&amp;gt; +	u_int			 class, state, i = 0;
&lt;br&gt;&amp;gt; &amp;nbsp;	char			*comn, buf[BUFSIZ], host[MAXHOSTNAMELEN];
&lt;br&gt;&amp;gt; &amp;nbsp;	struct ber_oid		 o;
&lt;br&gt;&amp;gt; -	size_t			 len;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;	bzero(msg, sizeof(*msg));
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; @@ -591,6 +671,8 @@
&lt;br&gt;&amp;gt; &amp;nbsp;	msg-&amp;gt;sm_request = req;
&lt;br&gt;&amp;gt; &amp;nbsp;	msg-&amp;gt;sm_error = errval;
&lt;br&gt;&amp;gt; &amp;nbsp;	msg-&amp;gt;sm_errorindex = erridx;
&lt;br&gt;&amp;gt; +	msg-&amp;gt;sm_nonrepeaters = msg-&amp;gt;sm_error;
&lt;br&gt;&amp;gt; +	msg-&amp;gt;sm_maxrepetitions = msg-&amp;gt;sm_errorindex;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;	print_host(ss, host, sizeof(host));
&lt;br&gt;&amp;gt; &amp;nbsp;	log_debug(&amp;quot;snmpe_parse: %s: SNMPv%d '%s' context %d request %lld&amp;quot;,
&lt;br&gt;&amp;gt; @@ -599,7 +681,7 @@
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;	errstr = &amp;quot;invalid varbind element&amp;quot;;
&lt;br&gt;&amp;gt; &amp;nbsp;	for (i = 1, a = msg-&amp;gt;sm_varbind, last = NULL;
&lt;br&gt;&amp;gt; -	 &amp;nbsp; &amp;nbsp;a != NULL &amp;&amp; i &amp;lt; SNMPD_MAXVARBIND; a = next, i++) {
&lt;br&gt;&amp;gt; +	 &amp;nbsp; &amp;nbsp;a != NULL &amp;&amp; i &amp;lt; SNMPD_MAXVARBINDLEN; a = next, i++) {
&lt;br&gt;&amp;gt; &amp;nbsp;		next = a-&amp;gt;be_next;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp;		if (a-&amp;gt;be_class != BER_CLASS_UNIVERSAL ||
&lt;br&gt;&amp;gt; @@ -647,30 +729,28 @@
&lt;br&gt;&amp;gt; &amp;nbsp;					msg-&amp;gt;sm_error = SNMP_ERROR_READONLY;
&lt;br&gt;&amp;gt; &amp;nbsp;					goto varfail;
&lt;br&gt;&amp;gt; &amp;nbsp;				case SNMP_C_GETBULKREQ:
&lt;br&gt;&amp;gt; -					j = msg-&amp;gt;sm_maxrepetitions;
&lt;br&gt;&amp;gt; +					msg-&amp;gt;sm_error = 0;
&lt;br&gt;&amp;gt; &amp;nbsp;					msg-&amp;gt;sm_errorindex = 0;
&lt;br&gt;&amp;gt; -					msg-&amp;gt;sm_error = SNMP_ERROR_NOSUCHNAME;
&lt;br&gt;&amp;gt; -					for (d = NULL, len = 0; j &amp;gt; 0; j--) {
&lt;br&gt;&amp;gt; -						e = ber_add_sequence(NULL);
&lt;br&gt;&amp;gt; -						if (c == NULL)
&lt;br&gt;&amp;gt; -							c = e;
&lt;br&gt;&amp;gt; -						f = mps_getnextreq(e, &amp;o);
&lt;br&gt;&amp;gt; -						if (f == NULL) {
&lt;br&gt;&amp;gt; -							ber_free_elements(e);
&lt;br&gt;&amp;gt; -							if (d == NULL)
&lt;br&gt;&amp;gt; -								goto varfail;
&lt;br&gt;&amp;gt; +					if (msg-&amp;gt;sm_nonrepeaters) {
&lt;br&gt;&amp;gt; +						log_debug(&amp;quot;handling %dth nonrepeater %s&amp;quot;,
&lt;br&gt;&amp;gt; +						 &amp;nbsp; &amp;nbsp;msg-&amp;gt;sm_nonrepeaters, smi_oidstring(&amp;o, buf, sizeof(buf)));
&lt;br&gt;&amp;gt; +						msg-&amp;gt;sm_nonrepeaters--;
&lt;br&gt;&amp;gt; +						c = ber_add_sequence(NULL);
&lt;br&gt;&amp;gt; +						if ((d = mps_getnextreq(c, &amp;o)) != NULL)
&lt;br&gt;&amp;gt; &amp;nbsp;							break;
&lt;br&gt;&amp;gt; -						}
&lt;br&gt;&amp;gt; -						len += ber_calc_len(e);
&lt;br&gt;&amp;gt; -						if (len &amp;gt; SNMPD_MAXVARBINDLEN) {
&lt;br&gt;&amp;gt; -							ber_free_elements(e);
&lt;br&gt;&amp;gt; -							break;
&lt;br&gt;&amp;gt; -						}
&lt;br&gt;&amp;gt; -						if (d != NULL)
&lt;br&gt;&amp;gt; -							ber_link_elements(d, e);
&lt;br&gt;&amp;gt; -						d = e;
&lt;br&gt;&amp;gt; +						ber_free_elements(c);
&lt;br&gt;&amp;gt; +						c = NULL;
&lt;br&gt;&amp;gt; +						break;	/* ignore error */
&lt;br&gt;&amp;gt; &amp;nbsp;					}
&lt;br&gt;&amp;gt; -					msg-&amp;gt;sm_error = 0;
&lt;br&gt;&amp;gt; +					if (msg-&amp;gt;sm_maxrepetitions == 0) {
&lt;br&gt;&amp;gt; +						log_debug(&amp;quot;error: no nonreps, no maxreps, oid not expected: %s&amp;quot;,
&lt;br&gt;&amp;gt; +							smi_oidstring(&amp;o, buf, sizeof(buf)));
&lt;br&gt;&amp;gt; +						msg-&amp;gt;sm_error = SNMP_ERROR_GENERR;
&lt;br&gt;&amp;gt; +						goto varfail;
&lt;br&gt;&amp;gt; +					}
&lt;br&gt;&amp;gt; +					c = snmpe_br_maxreps(msg, a, &amp;o, i);
&lt;br&gt;&amp;gt; +					state = 42; /* break inner loop */
&lt;br&gt;&amp;gt; +					i = state * SNMPD_MAXVARBINDLEN; /* break outer loop */
&lt;br&gt;&amp;gt; &amp;nbsp;					break;
&lt;br&gt;&amp;gt; &amp;nbsp;				default:
&lt;br&gt;&amp;gt; &amp;nbsp;					goto varfail;
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/snmpd%3A-better-support-for-GETBULK-tp26842761p26859564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26859518</id>
	<title>Re: snmpd: do not touch uninitialized memory</title>
	<published>2009-12-19T15:05:34Z</published>
	<updated>2009-12-19T15:05:34Z</updated>
	<author>
		<name>Jacek Masiulaniec-2</name>
	</author>
	<content type="html">On Fri, Dec 18, 2009 at 03:26:14PM +0300, Alexander Sabourenkov wrote:
&lt;br&gt;&amp;gt; Dumping string-type data would spew contents of uninitialized memory
&lt;br&gt;&amp;gt; because ber_get_string does no effort to zero-terminate its result.
&lt;br&gt;&lt;br&gt;Please submit diffs that apply to -current.
&lt;br&gt;&lt;br&gt;I admit ignorance of SNMP internals but by inspecting the code I
&lt;br&gt;am not convinced this is the right fix. &amp;nbsp;Before working around
&lt;br&gt;missing NUL terminator it must become clear why is it missing in
&lt;br&gt;the first place.
&lt;br&gt;&lt;br&gt;Look at buf_read_element. &amp;nbsp;The BER_TYPE_OCTETSTRING is always
&lt;br&gt;NUL-terminated. &amp;nbsp;Why is the terminator missing few lines later?
&lt;br&gt;&lt;br&gt;Then look at mps_setstr. &amp;nbsp;It strdups BER_TYPE_OCTETSTRING. &amp;nbsp;If NUL
&lt;br&gt;was always missing, then use of strdup would be incorrect. &amp;nbsp;Is it?
&lt;br&gt;&lt;br&gt;Jacek
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Index: snmpe.c
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/usr.sbin/snmpd/snmpe.c,v
&lt;br&gt;&amp;gt; retrieving revision 1.25
&lt;br&gt;&amp;gt; diff -u snmpe.c
&lt;br&gt;&amp;gt; --- snmpe.c	16 Dec 2009 22:17:53 -0000	1.25
&lt;br&gt;&amp;gt; +++ snmpe.c	18 Dec 2009 12:15:24 -0000
&lt;br&gt;&amp;gt; @@ -433,9 +433,11 @@
&lt;br&gt;&amp;gt; &amp;nbsp;		 &amp;nbsp; &amp;nbsp;root-&amp;gt;be_type == SNMP_T_IPADDR) {
&lt;br&gt;&amp;gt; &amp;nbsp;			fprintf(stderr, &amp;quot;addr %s\n&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;inet_ntoa(*(struct in_addr *)buf));
&lt;br&gt;&amp;gt; -		} else
&lt;br&gt;&amp;gt; -			fprintf(stderr, &amp;quot;string \&amp;quot;%s\&amp;quot;\n&amp;quot;,
&lt;br&gt;&amp;gt; -			 &amp;nbsp; &amp;nbsp;root-&amp;gt;be_len ? buf : &amp;quot;&amp;quot;);
&lt;br&gt;&amp;gt; +		} else {
&lt;br&gt;&amp;gt; +			fwrite(&amp;quot;string \&amp;quot;&amp;quot;, 8, 1, stderr);
&lt;br&gt;&amp;gt; +			fwrite(buf, root-&amp;gt;be_len, 1, stderr);
&lt;br&gt;&amp;gt; +			fwrite(&amp;quot;\&amp;quot;\n&amp;quot;, 2, 1, stderr);
&lt;br&gt;&amp;gt; +		}
&lt;br&gt;&amp;gt; &amp;nbsp;		break;
&lt;br&gt;&amp;gt; &amp;nbsp;	case BER_TYPE_NULL:	/* no payload */
&lt;br&gt;&amp;gt; &amp;nbsp;	case BER_TYPE_EOC:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./lxnt
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/snmpd%3A-do-not-touch-uninitialized-memory-tp26842689p26859518.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26857942</id>
	<title>Re: ifconfig(8) diff: one strdup less in trunk_status()</title>
	<published>2009-12-19T11:36:24Z</published>
	<updated>2009-12-19T11:36:24Z</updated>
	<author>
		<name>Claudio Jeker</name>
	</author>
	<content type="html">On Sat, Dec 19, 2009 at 09:16:06PM +0200, Vladimir Kirillov wrote:
&lt;br&gt;&amp;gt; Hello tech@!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Not sure this strdup() is required just to print the actor_mac.
&lt;br&gt;&amp;gt; Should it be removed?
&lt;br&gt;&lt;br&gt;No. Please read the ether_ntoa manpage:
&lt;br&gt;&amp;quot;It returns a pointer to a static structure that is reused for each call.&amp;quot;
&lt;br&gt;In other words you can not call ether_ntoa() twice in a printf().
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Index: ifconfig.c
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
&lt;br&gt;&amp;gt; retrieving revision 1.226
&lt;br&gt;&amp;gt; diff -u -p -r1.226 ifconfig.c
&lt;br&gt;&amp;gt; --- ifconfig.c	14 Dec 2009 17:22:58 -0000	1.226
&lt;br&gt;&amp;gt; +++ ifconfig.c	19 Dec 2009 19:15:15 -0000
&lt;br&gt;&amp;gt; @@ -4360,21 +4360,16 @@ trunk_status(void)
&lt;br&gt;&amp;gt; &amp;nbsp;		if (isport)
&lt;br&gt;&amp;gt; &amp;nbsp;			printf(&amp;quot; trunkdev %s&amp;quot;, rp.rp_ifname);
&lt;br&gt;&amp;gt; &amp;nbsp;		putchar('\n');
&lt;br&gt;&amp;gt; -		if (ra.ra_proto == TRUNK_PROTO_LACP) {
&lt;br&gt;&amp;gt; -			char *act_mac = strdup(
&lt;br&gt;&amp;gt; -			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr*)lp-&amp;gt;actor_mac));
&lt;br&gt;&amp;gt; -			if (act_mac == NULL)
&lt;br&gt;&amp;gt; -				err(1, &amp;quot;strdup&amp;quot;);
&lt;br&gt;&amp;gt; +		if (ra.ra_proto == TRUNK_PROTO_LACP)
&lt;br&gt;&amp;gt; &amp;nbsp;			printf(&amp;quot;\ttrunk id: [(%04X,%s,%04X,%04X,%04X),\n&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;&amp;quot;\t\t (%04X,%s,%04X,%04X,%04X)]\n&amp;quot;,
&lt;br&gt;&amp;gt; -			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_prio, act_mac,
&lt;br&gt;&amp;gt; +			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_prio,
&lt;br&gt;&amp;gt; +			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr *)lp-&amp;gt;actor_mac),
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_key, lp-&amp;gt;actor_portprio, lp-&amp;gt;actor_portno,
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_prio,
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr*)lp-&amp;gt;partner_mac),
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_key, lp-&amp;gt;partner_portprio,
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_portno);
&lt;br&gt;&amp;gt; -			free(act_mac);
&lt;br&gt;&amp;gt; -		}
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;		for (i = 0; i &amp;lt; ra.ra_ports; i++) {
&lt;br&gt;&amp;gt; &amp;nbsp;			printf(&amp;quot;\t\ttrunkport %s &amp;quot;, rpbuf[i].rp_portname);
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;-- 
&lt;br&gt;:wq Claudio
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ifconfig%288%29-diff%3A-one-strdup-less-in-trunk_status%28%29-tp26857811p26857942.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26857811</id>
	<title>ifconfig(8) diff: one strdup less in trunk_status()</title>
	<published>2009-12-19T11:16:06Z</published>
	<updated>2009-12-19T11:16:06Z</updated>
	<author>
		<name>Vladimir Kirillov-2</name>
	</author>
	<content type="html">Hello tech@!
&lt;br&gt;&lt;br&gt;Not sure this strdup() is required just to print the actor_mac.
&lt;br&gt;Should it be removed?
&lt;br&gt;&lt;br&gt;Index: ifconfig.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
&lt;br&gt;retrieving revision 1.226
&lt;br&gt;diff -u -p -r1.226 ifconfig.c
&lt;br&gt;--- ifconfig.c	14 Dec 2009 17:22:58 -0000	1.226
&lt;br&gt;+++ ifconfig.c	19 Dec 2009 19:15:15 -0000
&lt;br&gt;@@ -4360,21 +4360,16 @@ trunk_status(void)
&lt;br&gt;&amp;nbsp;		if (isport)
&lt;br&gt;&amp;nbsp;			printf(&amp;quot; trunkdev %s&amp;quot;, rp.rp_ifname);
&lt;br&gt;&amp;nbsp;		putchar('\n');
&lt;br&gt;-		if (ra.ra_proto == TRUNK_PROTO_LACP) {
&lt;br&gt;-			char *act_mac = strdup(
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr*)lp-&amp;gt;actor_mac));
&lt;br&gt;-			if (act_mac == NULL)
&lt;br&gt;-				err(1, &amp;quot;strdup&amp;quot;);
&lt;br&gt;+		if (ra.ra_proto == TRUNK_PROTO_LACP)
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;\ttrunk id: [(%04X,%s,%04X,%04X,%04X),\n&amp;quot;
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;&amp;quot;\t\t (%04X,%s,%04X,%04X,%04X)]\n&amp;quot;,
&lt;br&gt;-			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_prio, act_mac,
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_prio,
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr *)lp-&amp;gt;actor_mac),
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;actor_key, lp-&amp;gt;actor_portprio, lp-&amp;gt;actor_portno,
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_prio,
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;ether_ntoa((struct ether_addr*)lp-&amp;gt;partner_mac),
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_key, lp-&amp;gt;partner_portprio,
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;nbsp;lp-&amp;gt;partner_portno);
&lt;br&gt;-			free(act_mac);
&lt;br&gt;-		}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;		for (i = 0; i &amp;lt; ra.ra_ports; i++) {
&lt;br&gt;&amp;nbsp;			printf(&amp;quot;\t\ttrunkport %s &amp;quot;, rpbuf[i].rp_portname);
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ifconfig%288%29-diff%3A-one-strdup-less-in-trunk_status%28%29-tp26857811p26857811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26856422</id>
	<title>Re: macro name -- ypldap.conf.5</title>
	<published>2009-12-19T08:21:28Z</published>
	<updated>2009-12-19T08:21:28Z</updated>
	<author>
		<name>Jason McIntyre-2</name>
	</author>
	<content type="html">On Mon, Dec 14, 2009 at 09:49:45AM +0100, Rogier Krieger wrote:
&lt;br&gt;&amp;gt; &amp;gt;From what I can tell (and verify via ypldap -n), 'cost' is a valid
&lt;br&gt;&amp;gt; macro name. I suspect it was missed when copying text bits from
&lt;br&gt;&amp;gt; ripd.conf.5. Only a nit. Diff included below.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;fixed, thanks.
&lt;br&gt;jmc
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Index: ypldap/ypldap.conf.5
&lt;br&gt;&amp;gt; ===================================================================
&lt;br&gt;&amp;gt; RCS file: /cvs/src/usr.sbin/ypldap/ypldap.conf.5,v
&lt;br&gt;&amp;gt; retrieving revision 1.13
&lt;br&gt;&amp;gt; diff -u -r1.13 ypldap.conf.5
&lt;br&gt;&amp;gt; --- ypldap/ypldap.conf.5	16 Feb 2009 08:27:20 -0000	1.13
&lt;br&gt;&amp;gt; +++ ypldap/ypldap.conf.5	14 Dec 2009 08:43:56 -0000
&lt;br&gt;&amp;gt; @@ -47,7 +47,7 @@
&lt;br&gt;&amp;gt; &amp;nbsp;Macro names must start with a letter, and may contain letters, digits,
&lt;br&gt;&amp;gt; &amp;nbsp;and underscores.
&lt;br&gt;&amp;gt; &amp;nbsp;Macro names may not be reserved words (for example,
&lt;br&gt;&amp;gt; -.Ic cost ) .
&lt;br&gt;&amp;gt; +.Ic domain ) .
&lt;br&gt;&amp;gt; &amp;nbsp;Macros are not expanded inside quotes.
&lt;br&gt;&amp;gt; &amp;nbsp;.Pp
&lt;br&gt;&amp;gt; &amp;nbsp;For example:
&lt;/div&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/macro-name----ypldap.conf.5-tp26774639p26856422.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26856063</id>
	<title>Re: ifconfig(8) diff to properly resolve netmasks</title>
	<published>2009-12-19T07:37:41Z</published>
	<updated>2009-12-19T07:37:41Z</updated>
	<author>
		<name>Vladimir Kirillov-2</name>
	</author>
	<content type="html">forgot the case to avoid
&lt;br&gt;# ifconfig vether0 netmask google.com
&lt;br&gt;&lt;br&gt;Index: ifconfig.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
&lt;br&gt;retrieving revision 1.226
&lt;br&gt;diff -u -p -r1.226 ifconfig.c
&lt;br&gt;--- ifconfig.c	14 Dec 2009 17:22:58 -0000	1.226
&lt;br&gt;+++ ifconfig.c	19 Dec 2009 15:36:56 -0000
&lt;br&gt;@@ -4438,10 +4438,10 @@ in_getaddr(const char *s, int which)
&lt;br&gt;&amp;nbsp;		in_getprefix(p, MASK);
&lt;br&gt;&amp;nbsp;		memcpy(&amp;sin-&amp;gt;sin_addr, &amp;tsin.sin_addr, sizeof(sin-&amp;gt;sin_addr));
&lt;br&gt;&amp;nbsp;	} else if (inet_aton(s, &amp;sin-&amp;gt;sin_addr) == 0) {
&lt;br&gt;-		if ((hp = gethostbyname(s)))
&lt;br&gt;-			memcpy(&amp;sin-&amp;gt;sin_addr, hp-&amp;gt;h_addr, hp-&amp;gt;h_length);
&lt;br&gt;-		else if ((np = getnetbyname(s)))
&lt;br&gt;+		if (which == MASK &amp;&amp; (np = getnetbyname(s)))
&lt;br&gt;&amp;nbsp;			sin-&amp;gt;sin_addr = inet_makeaddr(np-&amp;gt;n_net, INADDR_ANY);
&lt;br&gt;+		else if (which != MASK &amp;&amp; (hp = gethostbyname2(s, AF_INET)))
&lt;br&gt;+			memcpy(&amp;sin-&amp;gt;sin_addr, hp-&amp;gt;h_addr, hp-&amp;gt;h_length);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			errx(1, &amp;quot;%s: bad value&amp;quot;, s);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ifconfig%288%29-diff-to-properly-resolve-netmasks-tp26855722p26856063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26855722</id>
	<title>ifconfig(8) diff to properly resolve netmasks</title>
	<published>2009-12-19T07:02:47Z</published>
	<updated>2009-12-19T07:02:47Z</updated>
	<author>
		<name>Vladimir Kirillov-2</name>
	</author>
	<content type="html">Hello tech@!
&lt;br&gt;&lt;br&gt;This diff prevents setting bogus netmasks, which are retrieved via
&lt;br&gt;gethostbyname()
&lt;br&gt;&lt;br&gt;i.e.:
&lt;br&gt;&lt;br&gt;root ~ 0 # grep mynet /etc/networks
&lt;br&gt;mynet &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 255.255.0.0
&lt;br&gt;root ~ 0 # ifconfig vether0 inet 10.0.0.100 netmask mynet
&lt;br&gt;root ~ 0 # ifconfig vether0
&lt;br&gt;vether0: flags=8843&amp;lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&amp;gt; mtu 1500
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lladdr 00:bd:2d:ce:3f:01
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; priority: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; groups: vether
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; media: Ethernet autoselect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status: active
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.0.0.100 netmask 0x43d74184 broadcast 190.40.190.127
&lt;br&gt;&lt;br&gt;now:
&lt;br&gt;&lt;br&gt;root src/sbin/ifconfig 0 # obj/ifconfig vether0 inet 10.0.0.100 netmask mynet 
&lt;br&gt;root src/sbin/ifconfig 0 # obj/ifconfig vether0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;vether0: flags=8843&amp;lt;UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST&amp;gt; mtu 1500
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lladdr 00:bd:2d:ce:3f:01
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; priority: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; groups: vether
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; media: Ethernet autoselect
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; status: active
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; inet 10.0.0.100 netmask 0xffff0000 broadcast 10.0.255.255
&lt;br&gt;&lt;br&gt;Index: ifconfig.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvs/src/sbin/ifconfig/ifconfig.c,v
&lt;br&gt;retrieving revision 1.226
&lt;br&gt;diff -u -p -r1.226 ifconfig.c
&lt;br&gt;--- ifconfig.c	14 Dec 2009 17:22:58 -0000	1.226
&lt;br&gt;+++ ifconfig.c	19 Dec 2009 13:39:51 -0000
&lt;br&gt;@@ -4438,10 +4438,10 @@ in_getaddr(const char *s, int which)
&lt;br&gt;&amp;nbsp;		in_getprefix(p, MASK);
&lt;br&gt;&amp;nbsp;		memcpy(&amp;sin-&amp;gt;sin_addr, &amp;tsin.sin_addr, sizeof(sin-&amp;gt;sin_addr));
&lt;br&gt;&amp;nbsp;	} else if (inet_aton(s, &amp;sin-&amp;gt;sin_addr) == 0) {
&lt;br&gt;-		if ((hp = gethostbyname(s)))
&lt;br&gt;-			memcpy(&amp;sin-&amp;gt;sin_addr, hp-&amp;gt;h_addr, hp-&amp;gt;h_length);
&lt;br&gt;-		else if ((np = getnetbyname(s)))
&lt;br&gt;+		if (which == MASK &amp;&amp; (np = getnetbyname(s)))
&lt;br&gt;&amp;nbsp;			sin-&amp;gt;sin_addr = inet_makeaddr(np-&amp;gt;n_net, INADDR_ANY);
&lt;br&gt;+		else if ((hp = gethostbyname2(s, AF_INET)))
&lt;br&gt;+			memcpy(&amp;sin-&amp;gt;sin_addr, hp-&amp;gt;h_addr, hp-&amp;gt;h_length);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			errx(1, &amp;quot;%s: bad value&amp;quot;, s);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ifconfig%288%29-diff-to-properly-resolve-netmasks-tp26855722p26855722.html" />
</entry>

</feed>
