<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>kluner.net &#187; FreeBSD</title>
	<atom:link href="http://www.kluner.net/category/freebsd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kluner.net</link>
	<description>sysadmin madness, in relative perspective</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Crouching lion, hidden UNIX</title>
		<link>http://www.kluner.net/2011/09/09/crouching-lion-hidden-unix/</link>
		<comments>http://www.kluner.net/2011/09/09/crouching-lion-hidden-unix/#comments</comments>
		<pubDate>Fri, 09 Sep 2011 07:03:02 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[mac OS X]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=468</guid>
		<description><![CDATA[One of the many things I like about Mac OS X (Server) is the fact it&#8217;s a pure-bred UNIX. It&#8217;s even certified as such. Not to mention that the Director of Unix Technology at Apple is the person who at one point started the FreeBSD project: Jordan K. Hubbard. (I love FreeBSD, so I&#8217;m very [...]]]></description>
			<content:encoded><![CDATA[<p>One of the many things I like about Mac OS X (Server) is the fact it&#8217;s a pure-bred UNIX. It&#8217;s even certified as such. Not to mention that the Director of Unix Technology at Apple is the person who at one point started the FreeBSD project: Jordan K. Hubbard. (I love FreeBSD, so I&#8217;m very appreciative of Jordan&#8217;s work)</p>
<p>Another reason I like OS X as much as I do, is because literally anything can be done from the command-line, something a Unix nerd like myself thoroughly loves to do. But, OS X has advanced features like Access Control Lists and all that fancy stuff, so sometimes I can be a bit of a learn to find out how exactly OS X does things compared to other members of the Unix family.</p>
<p>Now, I mentioned ACL&#8217;s, when you do something rather simple like &#8216;ls -la on /Groups&#8217;, you get this:</p>
<pre>
server:Groups username$ ls -la
total 0
drwxr-xr-x+  6 root  wheel   204 Aug  7 21:57 .
drwxr-xr-x  33 root  wheel  1190 Aug 17 09:29 ..
-rwxr-xr-x   1 root  wheel     0 Jul 27 21:29 .localized
drwxrwx---+  5 root  admin   170 Aug 13 12:37 group1
drwxrwx---+  2 root  admin    68 Aug  7 21:57 group2
drwxrwx---+  2 root  admin    68 Jul 27 21:47 workgroup
</pre>
<p>which is nice enough, but what if I wanted to see the <strong>real</strong> permissions, including the ACL&#8217;s? There&#8217;s a switch for that:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-lae</span></pre></td></tr></table></div>

<p>Wich produces the following output:</p>
<pre>
total 0
drwxr-xr-x+  6 root  wheel   204 Aug  7 21:57 .
 0: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
drwxr-xr-x  33 root  wheel  1190 Aug 17 09:29 ..
-rwxr-xr-x   1 root  wheel     0 Jul 27 21:29 .localized
drwxrwx---+  5 root  admin   170 Aug 13 12:37 group1
 0: group:group1 allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_inherit
 1: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
drwxrwx---+  2 root  admin    68 Aug  7 21:57 group2
 0: group:group2 allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_inherit
 1: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
drwxrwx---+  2 root  admin    68 Jul 27 21:47 workgroup
 0: 839AE424-BBF3-442E-BAD6-C8B5E8B596F5 allow list,add_file,search,delete,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity,writesecurity,chown,file_inherit,directory_inherit
 1: user:_spotlight inherited allow list,search,file_inherit,directory_inherit
</pre>
<p>It might be a bit daunting to read through, but heck if it does&#8217;t show you exactly what you need to see. It&#8217;s really easy seeing ACL&#8217;s on Mac OS X with ls! </p>
<p>In case you&#8217;re wondering, the &#8217;839AE424-BBF3-442E-BAD6-C8B5E8B596F5&#8242; part corresponds to a UserID in OpenDirectory/LDAP. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2011/09/09/crouching-lion-hidden-unix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>when using suphp on FreeBSD</title>
		<link>http://www.kluner.net/2009/03/09/when-using-suphp-on-freebsd/</link>
		<comments>http://www.kluner.net/2009/03/09/when-using-suphp-on-freebsd/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 09:52:46 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=283</guid>
		<description><![CDATA[always remember to do the following after upgrading PHP, but before restarting apache: 1 2 cd /usr/ports/www/suphp make deinstall &#38;&#38; make reinstall when using eaccelerator do: 1 2 cd /usr/ports/www/eaccelerator make deinstall &#38;&#38; make reinstall too. Saves you a LOT of headaches [ad]]]></description>
			<content:encoded><![CDATA[<p>always remember to do the following after upgrading PHP, but before restarting apache:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>suphp
<span style="color: #c20cb9; font-weight: bold;">make</span> deinstall <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> reinstall</pre></td></tr></table></div>

<p>when using eaccelerator do:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>ports<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>eaccelerator
<span style="color: #c20cb9; font-weight: bold;">make</span> deinstall <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">make</span> reinstall</pre></td></tr></table></div>

<p>too.</p>
<p>Saves you a LOT of headaches <img src='http://www.kluner.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2009/03/09/when-using-suphp-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 7.1-RC2 ISO&#8217;s hit the master-ftp server</title>
		<link>http://www.kluner.net/2008/12/24/freebsd-71-rc2-isos-hit-the-master-ftp-server/</link>
		<comments>http://www.kluner.net/2008/12/24/freebsd-71-rc2-isos-hit-the-master-ftp-server/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 13:50:21 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=256</guid>
		<description><![CDATA[The FreeBSD developers are clearly stepping up the pace with the second RC for 7.1 out in almost no time after the first one hit. What&#8217;s next guys? -RELEASE before new years? [ad]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freebsd.org/" target="_blank"><img class="alignright size-full wp-image-235" style="border: 0pt none; margin: 2px;" title="FreeBSD logo (Small)" src="http://www.kluner.net/wp-content/uploads/2008/12/logo-full1.png" alt="FreeBSD logo (Small)" width="151" height="52" /></a>The FreeBSD developers are clearly stepping up the pace with the second RC for 7.1 out in almost no time after  the first one hit.</p>
<p>What&#8217;s next guys? -RELEASE before new years? <img src='http://www.kluner.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2008/12/24/freebsd-71-rc2-isos-hit-the-master-ftp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD 7.1-RC1 Security Advisories</title>
		<link>http://www.kluner.net/2008/12/23/freebsd-71-rc1-security-advisories/</link>
		<comments>http://www.kluner.net/2008/12/23/freebsd-71-rc1-security-advisories/#comments</comments>
		<pubDate>Tue, 23 Dec 2008 12:20:02 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=246</guid>
		<description><![CDATA[One day, you&#8217;re bouncing all over the place because there&#8217;s an official 7.1-RC1, the next, there&#8217;s already two security advisories. To sum them up: protosw safe to ignore unless you have local users, safe to ignore if you haven&#8217;t loaded / compiled in the ng_* modules Index: sys/kern/uipc_domain.c =================================================================== --- sys/kern/uipc_domain.c &#40;revision 186366&#41; +++ sys/kern/uipc_domain.c [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freebsd.org/" target="_blank"><img class="size-full wp-image-235 alignright" style="border: 0pt none; margin: 4px;" title="FreeBSD logo (Small)" src="http://www.kluner.net/wp-content/uploads/2008/12/logo-full1.png" alt="FreeBSD - The power to serve" width="151" height="52" /></a></p>
<p>One day, you&#8217;re bouncing all over the place because there&#8217;s an official 7.1-RC1, the next, there&#8217;s already two security advisories.</p>
<p>To sum them up:</p>
<ul>
<li><a href="http://security.freebsd.org/advisories/FreeBSD-SA-08:13.protosw.asc" target="_blank"><strong>protosw</strong></a><br />
safe to ignore unless you have local users, safe to ignore if you haven&#8217;t loaded / compiled in the ng_* modules</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">Index: sys/kern/uipc_domain.c
===================================================================
<span style="color: #888822;">--- sys/kern/uipc_domain.c	<span style="">&#40;</span>revision 186366<span style="">&#41;</span></span>
<span style="color: #888822;">+++ sys/kern/uipc_domain.c	<span style="">&#40;</span>working copy<span style="">&#41;</span></span>
<span style="color: #440088;">@@ -112,13 +112,18 @@</span>
&nbsp;
 #define DEFAULT<span style="">&#40;</span>foo, bar<span style="">&#41;</span>	if <span style="">&#40;</span><span style="">&#40;</span>foo<span style="">&#41;</span> == NULL<span style="">&#41;</span>  <span style="">&#40;</span>foo<span style="">&#41;</span> = <span style="">&#40;</span>bar<span style="">&#41;</span>
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_accept, pru_accept_notsupp<span style="">&#41;</span>;
<span style="color: #00b000;">+	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_bind, pru_bind_notsupp<span style="">&#41;</span>;</span>
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_connect, pru_connect_notsupp<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_connect2, pru_connect2_notsupp<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_control, pru_control_notsupp<span style="">&#41;</span>;
<span style="color: #00b000;">+	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_disconnect, pru_disconnect_notsupp<span style="">&#41;</span>;</span>
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_listen, pru_listen_notsupp<span style="">&#41;</span>;
<span style="color: #00b000;">+	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_peeraddr, pru_peeraddr_notsupp<span style="">&#41;</span>;</span>
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_rcvd, pru_rcvd_notsupp<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_rcvoob, pru_rcvoob_notsupp<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_sense, pru_sense_null<span style="">&#41;</span>;
<span style="color: #00b000;">+	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_shutdown, pru_shutdown_notsupp<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_sockaddr, pru_sockaddr_notsupp<span style="">&#41;</span>;</span>
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_sosend, sosend_generic<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_soreceive, soreceive_generic<span style="">&#41;</span>;
 	DEFAULT<span style="">&#40;</span>pu-&amp;gt;pru_sopoll, sopoll_generic<span style="">&#41;</span>;</pre></div></div>

</li>
</ul>
<ul>
<li><a href="http://security.freebsd.org/advisories/FreeBSD-SA-08:12.ftpd.asc" target="_blank"><strong>ftpd</strong></a><br />
you can ignore it if you don&#8217;t run this ftp daemon, or if you have disabled ftp all together. Otherwise: patch it right the heck now!</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">Index: libexec/ftpd/ftpcmd.y
===================================================================
<span style="color: #888822;">--- libexec/ftpd/ftpcmd.y	<span style="">&#40;</span>revision 185134<span style="">&#41;</span></span>
<span style="color: #888822;">+++ libexec/ftpd/ftpcmd.y	<span style="">&#40;</span>working copy<span style="">&#41;</span></span>
<span style="color: #440088;">@@ -1191,7 +1191,7 @@</span>
 /*
  * getline - a hacked up version of fgets to ignore TELNET escape codes.
  */
<span style="color: #991111;">-char *</span>
<span style="color: #00b000;">+int</span>
 getline<span style="">&#40;</span>char *s, int n, FILE *iop<span style="">&#41;</span>
 <span style="">&#123;</span>
 	int c;
<span style="color: #440088;">@@ -1207,7 +1207,7 @@</span>
 			if <span style="">&#40;</span>ftpdebug<span style="">&#41;</span>
 				syslog<span style="">&#40;</span>LOG_DEBUG, &quot;command: %s&quot;, s<span style="">&#41;</span>;
 			tmpline<span style="">&#91;</span><span style="">0</span><span style="">&#93;</span> = '\<span style="">0</span>';
<span style="color: #991111;">-			return<span style="">&#40;</span>s<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+			return<span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;</span>
 		<span style="">&#125;</span>
 		if <span style="">&#40;</span>c == <span style="">0</span><span style="">&#41;</span>
 			tmpline<span style="">&#91;</span><span style="">0</span><span style="">&#93;</span> = '\<span style="">0</span>';
<span style="color: #440088;">@@ -1244,13 +1244,24 @@</span>
 			<span style="">&#125;</span>
 		<span style="">&#125;</span>
 		*cs++ = c;
<span style="color: #991111;">-		if <span style="">&#40;</span>--n &amp;lt;= <span style="">0</span> || c == '\n'<span style="">&#41;</span></span>
<span style="color: #00b000;">+		if <span style="">&#40;</span>--n &amp;lt;= 0<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+			/*</span>
<span style="color: #00b000;">+			 * If command doesn't fit into buffer, discard the</span>
<span style="color: #00b000;">+			 * rest of the command and indicate truncation.</span>
<span style="color: #00b000;">+			 * This prevents the command to be split up into</span>
<span style="color: #00b000;">+			 * multiple commands.</span>
<span style="color: #00b000;">+			 */</span>
<span style="color: #00b000;">+			while <span style="">&#40;</span>c != '\n' &amp;amp;&amp;amp; <span style="">&#40;</span>c = getc<span style="">&#40;</span>iop<span style="">&#41;</span><span style="">&#41;</span> != EOF<span style="">&#41;</span></span>
<span style="color: #00b000;">+				;</span>
<span style="color: #00b000;">+			return <span style="">&#40;</span>-<span style="">2</span><span style="">&#41;</span>;</span>
<span style="color: #00b000;">+		<span style="">&#125;</span></span>
<span style="color: #00b000;">+		if <span style="">&#40;</span>c == '\n'<span style="">&#41;</span></span>
 			break;
 	<span style="">&#125;</span>
 got_eof:
 	sigprocmask<span style="">&#40;</span>SIG_SETMASK, &amp;amp;osset, NULL<span style="">&#41;</span>;
 	if <span style="">&#40;</span>c == EOF &amp;amp;&amp;amp; cs == s<span style="">&#41;</span>
<span style="color: #991111;">-		return <span style="">&#40;</span>NULL<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+		return <span style="">&#40;</span>-<span style="">1</span><span style="">&#41;</span>;</span>
 	*cs++ = '\<span style="">0</span>';
 	if <span style="">&#40;</span>ftpdebug<span style="">&#41;</span> <span style="">&#123;</span>
 		if <span style="">&#40;</span>!guest &amp;amp;&amp;amp; strncasecmp<span style="">&#40;</span>&quot;pass &quot;, s, <span style="">5</span><span style="">&#41;</span> == <span style="">0</span><span style="">&#41;</span> <span style="">&#123;</span>
<span style="color: #440088;">@@ -1270,7 +1281,7 @@</span>
 			syslog<span style="">&#40;</span>LOG_DEBUG, &quot;command: %.*s&quot;, len, s<span style="">&#41;</span>;
 		<span style="">&#125;</span>
 	<span style="">&#125;</span>
<span style="color: #991111;">-	return <span style="">&#40;</span>s<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+	return <span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;</span>
 <span style="">&#125;</span>
&nbsp;
 static void
<span style="color: #440088;">@@ -1300,9 +1311,14 @@</span>
 		case CMD:
 			<span style="">&#40;</span>void<span style="">&#41;</span> signal<span style="">&#40;</span>SIGALRM, toolong<span style="">&#41;</span>;
 			<span style="">&#40;</span>void<span style="">&#41;</span> alarm<span style="">&#40;</span>timeout<span style="">&#41;</span>;
<span style="color: #991111;">-			if <span style="">&#40;</span>getline<span style="">&#40;</span>cbuf, sizeof<span style="">&#40;</span>cbuf<span style="">&#41;</span>-1, stdin<span style="">&#41;</span> == NULL<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+			n = getline<span style="">&#40;</span>cbuf, sizeof<span style="">&#40;</span>cbuf<span style="">&#41;</span>-<span style="">1</span>, stdin<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+			if <span style="">&#40;</span>n == -1<span style="">&#41;</span> <span style="">&#123;</span></span>
 				reply<span style="">&#40;</span><span style="">221</span>, &quot;You could at least say goodbye.&quot;<span style="">&#41;</span>;
 				dologout<span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;
<span style="color: #00b000;">+			<span style="">&#125;</span> else if <span style="">&#40;</span>n == -2<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+				reply<span style="">&#40;</span><span style="">500</span>, &quot;Command too long.&quot;<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+				<span style="">&#40;</span>void<span style="">&#41;</span> alarm<span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;</span>
<span style="color: #00b000;">+				continue;</span>
 			<span style="">&#125;</span>
 			<span style="">&#40;</span>void<span style="">&#41;</span> alarm<span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;
 #ifdef SETPROCTITLE
Index: libexec/ftpd/extern.h
===================================================================
<span style="color: #888822;">--- libexec/ftpd/extern.h	<span style="">&#40;</span>revision 185134<span style="">&#41;</span></span>
<span style="color: #888822;">+++ libexec/ftpd/extern.h	<span style="">&#40;</span>working copy<span style="">&#41;</span></span>
<span style="color: #440088;">@@ -46,7 +46,7 @@</span>
 void    ftpd_logwtmp<span style="">&#40;</span>char *, char *, struct sockaddr *addr<span style="">&#41;</span>;
 int	ftpd_pclose<span style="">&#40;</span>FILE *<span style="">&#41;</span>;
 FILE   *ftpd_popen<span style="">&#40;</span>char *, char *<span style="">&#41;</span>;
<span style="color: #991111;">-char   *getline<span style="">&#40;</span>char *, int, FILE *<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+int	getline<span style="">&#40;</span>char *, int, FILE *<span style="">&#41;</span>;</span>
 void	lreply<span style="">&#40;</span>int, const char *, ...<span style="">&#41;</span> __printflike<span style="">&#40;</span><span style="">2</span>, <span style="">3</span><span style="">&#41;</span>;
 void	makedir<span style="">&#40;</span>char *<span style="">&#41;</span>;
 void	nack<span style="">&#40;</span>char *<span style="">&#41;</span>;
Index: libexec/ftpd/ftpd.c
===================================================================
<span style="color: #888822;">--- libexec/ftpd/ftpd.c	<span style="">&#40;</span>revision 185134<span style="">&#41;</span></span>
<span style="color: #888822;">+++ libexec/ftpd/ftpd.c	<span style="">&#40;</span>working copy<span style="">&#41;</span></span>
<span style="color: #440088;">@@ -2794,15 +2794,20 @@</span>
 myoob<span style="">&#40;</span>void<span style="">&#41;</span>
 <span style="">&#123;</span>
 	char *cp;
<span style="color: #00b000;">+	int ret;</span>
&nbsp;
 	if <span style="">&#40;</span>!transflag<span style="">&#41;</span> <span style="">&#123;</span>
 		syslog<span style="">&#40;</span>LOG_ERR, &quot;Internal: myoob<span style="">&#40;</span><span style="">&#41;</span> while no transfer&quot;<span style="">&#41;</span>;
 		return <span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;
 	<span style="">&#125;</span>
 	cp = tmpline;
<span style="color: #991111;">-	if <span style="">&#40;</span>getline<span style="">&#40;</span>cp, 7, stdin<span style="">&#41;</span> == NULL<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+	ret = getline<span style="">&#40;</span>cp, <span style="">7</span>, stdin<span style="">&#41;</span>;</span>
<span style="color: #00b000;">+	if <span style="">&#40;</span>ret == -1<span style="">&#41;</span> <span style="">&#123;</span></span>
 		reply<span style="">&#40;</span><span style="">221</span>, &quot;You could at least say goodbye.&quot;<span style="">&#41;</span>;
 		dologout<span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;
<span style="color: #00b000;">+	<span style="">&#125;</span> else if <span style="">&#40;</span>ret == -2<span style="">&#41;</span> <span style="">&#123;</span></span>
<span style="color: #00b000;">+		/* Ignore truncated command. */</span>
<span style="color: #00b000;">+		return <span style="">&#40;</span><span style="">0</span><span style="">&#41;</span>;</span>
 	<span style="">&#125;</span>
 	upper<span style="">&#40;</span>cp<span style="">&#41;</span>;
 	if <span style="">&#40;</span>strcmp<span style="">&#40;</span>cp, &quot;ABOR\r\n&quot;<span style="">&#41;</span> == <span style="">0</span><span style="">&#41;</span> <span style="">&#123;</span></pre></div></div>

</li>
</ul>
<p>I noticed that the -RC2 branch is in place too now. Almost there&#8230;. must &#8230; be &#8230; patient &#8230;</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2008/12/23/freebsd-71-rc1-security-advisories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>And FreeBSD 7.1-RC1 official</title>
		<link>http://www.kluner.net/2008/12/22/and-freebsd-71-rc1-official/</link>
		<comments>http://www.kluner.net/2008/12/22/and-freebsd-71-rc1-official/#comments</comments>
		<pubDate>Mon, 22 Dec 2008 10:32:10 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/?p=228</guid>
		<description><![CDATA[You got to love the way they write the release announcements: &#8220;Gee. Did we really implement that new interface that way? That needs a bit more work.&#8221; So,  it&#8217;s now the last few legs of the release cycle, and I&#8217;m looking forward to it. DO read the release announcement or /usr/src/UPDATING, specialy if you currently [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.freebsd.org/" target="_blank"><img class="size-full wp-image-235 alignright" style="border: 0pt none; margin: 1px;" title="FreeBSD - the power to serve!" src="http://www.kluner.net/wp-content/uploads/2008/12/logo-full1.png" alt="FreeBSD - The power to server" width="151" height="52" /></a></p>
<p>You got to love the way they <a title="FreeBSD 7.1-RC1 release announcement" href="http://lists.freebsd.org/pipermail/freebsd-stable/2008-December/047014.html" target="_blank">write</a> the release announcements:</p>
<blockquote><p>&#8220;Gee.  Did we really implement that new interface that way?  That needs a bit more work.&#8221;</p></blockquote>
<p>So,  it&#8217;s now the last few legs of the release cycle, and I&#8217;m looking forward to it.</p>
<p>DO read the release announcement or /usr/src/UPDATING, specialy if you currently have a system that uses the <a href="http://www.freebsd.org/cgi/man.cgi?query=em&amp;apropos=0&amp;sektion=4&amp;manpath=FreeBSD+8-current&amp;format=html" target="_blank">em(4) </a>driver (Intel E1000 NIC), it might change with this release, to <a href="http://www.freebsd.org/cgi/man.cgi?query=igb&amp;apropos=0&amp;sektion=4&amp;manpath=FreeBSD+8-current&amp;format=html" target="_blank">igb(4)</a>.</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2008/12/22/and-freebsd-71-rc1-official/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>gearing up for FreeBSD 7.1</title>
		<link>http://www.kluner.net/2008/12/11/gearing-up-for-freebsd-71/</link>
		<comments>http://www.kluner.net/2008/12/11/gearing-up-for-freebsd-71/#comments</comments>
		<pubDate>Thu, 11 Dec 2008 14:06:47 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/content/2008/12/11/gearing-up-for-freebsd-71/</guid>
		<description><![CDATA[We&#8217;re only a little bit removed from the next major FreeBSD release. The branch has been tagged, and the ports-tree is (thank God!) unfrozen once again. The first Release Candidate has hit the FTP servers. I&#8217;ve been running -PRERELEASE for a while now, and haven&#8217;t found any problems so far, not on real-steal hardware, nor [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re only a little bit removed from the next major FreeBSD release. The branch has been tagged, and the ports-tree is (thank God!) unfrozen once again. The first Release Candidate has hit the FTP servers.</p>
<p>I&#8217;ve been running -PRERELEASE for a while now, and haven&#8217;t found any problems so far, not on real-steal hardware, nor on vmware virtualized hardware.</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2008/12/11/gearing-up-for-freebsd-71/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>usefull tips for FreeBSD in vmware</title>
		<link>http://www.kluner.net/2007/11/14/usefull-tips-for-freebsd-in-vmware/</link>
		<comments>http://www.kluner.net/2007/11/14/usefull-tips-for-freebsd-in-vmware/#comments</comments>
		<pubDate>Wed, 14 Nov 2007 12:04:40 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Vmware]]></category>

		<guid isPermaLink="false">http://www.kluner.net/wordpress/?p=44</guid>
		<description><![CDATA[Ivan Voras made a nice post called FreeBSD under VMWare, it has very usefull tips. Read more here. it covers a number of common pitfalls related to using FreeBSD in a vmware setting: using the wrong network driver (reducing network bandwith to 10Mbit/s) wrong kernel time frequency (modern day is 1000Hz, 100Hz is recommended) if [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Ivan Voras" href="http://ivoras.sharanet.org/index.html" target="_blank">Ivan Voras </a>made a nice post called FreeBSD under VMWare, it has very usefull tips. Read more <a title="FreeBSD under VMWare" href="http://ivoras.sharanet.org/freebsd/vmware.html" target="_blank">here</a>.</p>
<p align="left">it covers a number of common pitfalls related to using FreeBSD in a vmware setting:</p>
<ul>
<li>using the wrong network driver (reducing network bandwith to 10Mbit/s)</li>
<li>wrong kernel time frequency (modern day is 1000Hz, 100Hz is recommended)</li>
</ul>
<p>if I come up with some more interesting things, I&#8217;ll post them here.</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2007/11/14/usefull-tips-for-freebsd-in-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD portupgrade / portversion dumps core</title>
		<link>http://www.kluner.net/2007/10/07/freebsd-portupgrade-portversion-dumps-core/</link>
		<comments>http://www.kluner.net/2007/10/07/freebsd-portupgrade-portversion-dumps-core/#comments</comments>
		<pubDate>Sun, 07 Oct 2007 21:40:42 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/wordpress/?p=42</guid>
		<description><![CDATA[First of all: do not panic Second: get some coffee Finaly: rm /var/db/pkg/pkgdb.db I think this comes from upgrading portupgrade somewhere along the line, and accidentaly switching between database formats (hash, or bdb4 btree). The strangest thing is that I&#8217;ve searched high and low with Google, but no results anywhere. (not even any of the [...]]]></description>
			<content:encoded><![CDATA[<p>First of all: do not panic</p>
<p>Second: get some coffee</p>
<p>Finaly: rm /var/db/pkg/pkgdb.db</p>
<p>I think this comes from upgrading portupgrade somewhere along the line, and accidentaly switching between database formats (hash, or bdb4 btree). The strangest thing is that I&#8217;ve searched high and low with Google, but no results anywhere. (not even any of the FreeBSD maillinglists). So it took me a little while to figure out this one.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2007/10/07/freebsd-portupgrade-portversion-dumps-core/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP has clue, but not quite enough (yet)</title>
		<link>http://www.kluner.net/2007/09/12/hp-has-clue-but-not-quite-enough-yet/</link>
		<comments>http://www.kluner.net/2007/09/12/hp-has-clue-but-not-quite-enough-yet/#comments</comments>
		<pubDate>Wed, 12 Sep 2007 21:50:06 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://www.kluner.net/wordpress/?p=41</guid>
		<description><![CDATA[I like HP servers. True enough, I like Supermicro better, but big companies tend not to like Supermicro due to the fact you have to assemble them yourself, and there&#8217;s no real support / SLA agreement possible with them (for now &#8211; I hear it&#8217;s in the works). Most people in the ISP world know [...]]]></description>
			<content:encoded><![CDATA[<p>I like <a title="HP DL380 G5" href="http://h10010.www1.hp.com/wwpc/nl/nl/sm/WF25a/1563-1567-355013-355013-12083231-12568306.html" target="_blank">HP servers</a>. True enough, I like <a title="Supermicro" href="http://www.supermicro.com/" target="_blank">Supermicro</a> better, but big companies tend not to like Supermicro due to the fact you have to assemble them yourself, and there&#8217;s no real support / SLA agreement possible with them (for now &#8211; I hear it&#8217;s in the works). Most people in the ISP world know however, that Supermicro is extremely reliable stuff, and priced extremely nicely.</p>
<p>Anyhow, I&#8217;m stuck with HP, which is not a bad platform to get stuck with to begin with. <a title="FreeBSD.org - the power to serve" href="http://www.freebsd.org/" target="_blank">FreeBSD</a> runs beautifully on it, but then you have to do without the insight manager agents, the same deal applies when you run <a title="Ubuntu" href="http://www.ubuntu.com/" target="_blank">Ubuntu</a>. <a title="CentOS - RHEL, but not so expensive" href="http://www.centos.org/" target="_blank">Centos</a> 4 and 5 are a breeze, just edit /etc/redhat-release so it reflects a <a title="Red Hat - extremely expensive way to run Linux" href="http://www.redhat.com/" target="_blank">RedHat</a> version of Enterprise Server, and install the software like you normaly do.</p>
<p>One thing I seriously dislike however, is that when I run Ubuntu or FreeBSD on a HP box, my monitoring capabilities drop to almost zero. With RedHat or Centos I can monitor through the insight manager agents (who hook into SNMP), and use the <a title="best monitoring kit ever!" href="http://www.nagios.org/" target="_blank">nagios</a> <a title="compaq insight manager plugin" href="http://archive.groundworkopensource.com/groundwork-opensource/tags/GROUNDWORK_MONITOR_5_1_0/monitor-core/nagios/plugins-contrib/check_compaq_insight.pl" target="_blank">check_compaq_insight.pl</a>, and as soon as something breaks: I get paged. With FreeBSD (and ubuntu) that seems completely impossible. My last attempt on an Ubuntu box to install those agents resulted in some very serious library problems, because the installer auto-installed some distro-specific rpm&#8217;s.  That showed me who&#8217;s boss. (not!).</p>
<p>Anyhow, during my daily stroll at the <a title="Nagios Exchange : one stop plugin Walhalla" href="http://www.nagiosexchange.org/" target="_blank">Nagios Exchange</a> I noticed a plugin that I hadn&#8217;t noticed before: <a title="check_ilo2_health" href="http://www.nagiosexchange.org/Hardware.56.0.html?&amp;tx_netnagext_pi1[p_view]=984" target="_blank">check_ilo2_health</a>. This is a great little plugin written in <a title="Perl - what do you want to code today?" href="http://www.perl.org/" target="_blank">Perl</a>. Instead of the old: talk to snmpd approach, this little bugger talks directly to the ilo2 interface (ilo/il01 won&#8217;t work), and more specifically: it&#8217;s XML interface.</p>
<blockquote><p><strong>wait</strong>. did you say XML interface?</p>
<p>Yup, the ILO2 sports a nice new XML interface, with which you can communicate. HP even provides <a title="how to talk XML with an ILO2" href="http://h18013.www1.hp.com/support/files/lights-out/us/download/25057.html" target="_blank">a bunch of examples</a> on how to talk shop with it.  Nice hey?</p></blockquote>
<p>Now I thought, did HP actually put everything you can monitor with the insight agents into the ILO2 and make it accessible with XML?</p>
<p>Unfortunatly: no. (yes, that was quite disappointing).</p>
<p>You can get quite a bit of useful information through the XML interface, including the speed of the fans, temperature readings from all the internal sensors. You can even configure a lot of things, like users and IP settings through it. You can even upgrade the ILO2 firmware through the XML interface. But nothing on RAID status, rebuild status, etc. I tried this against a brand spanking new DL380 G5, so if it doesn&#8217;t work there, it won&#8217;t work anywhere.</p>
<p>If anyone at HP reads this: please extend the ILO2 so everything is accessible through it&#8217;s XML interface. That saves us a lot of trouble of trying to get those agents installed on other operating systems. FreeBSD is too good an OS to ignore, even for an OEM as big as you. (and you don&#8217;t, judging from this <a title="HP donates bladecluster to FreeBSD project (PDF)" href="http://www.freebsd-foundation.org/press/20051201-PRreleaseHP.pdf" target="_blank">news-snippet</a> (PDF)). So either open up the XML interface more, or provide us with insight manager agents for FreeBSD. (I would be more then happy to help with testing).</p>
<p>[ad]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2007/09/12/hp-has-clue-but-not-quite-enough-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xseries 226 + FreeBSD amd64/intel64 = b0rk!</title>
		<link>http://www.kluner.net/2007/02/12/xseries-226-freebsd-amd64intel64-b0rk/</link>
		<comments>http://www.kluner.net/2007/02/12/xseries-226-freebsd-amd64intel64-b0rk/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 22:02:50 +0000</pubDate>
		<dc:creator>Arjan Koole</dc:creator>
				<category><![CDATA[FreeBSD]]></category>

		<guid isPermaLink="false">http://www.kluner.net/wordpress/?p=23</guid>
		<description><![CDATA[Like I wrote earlier, I got a nice IBM eserver xseries 226. After I figured out that the CPU was, in fact, 64-bit capable (amd64/intel64 &#8211; EM64T), I went and downloaded the x86_64 version of FreeBSD 6.2, burned it on CD, popped it into the drive, and&#8230;. nothing Okay, nothing is an overstatement really, but [...]]]></description>
			<content:encoded><![CDATA[<p>Like I wrote <a href="http://www.kluner.net/wordpress/index.php/2007/02/12/figuring-out-cpu-capabilities/">earlier</a>, I got a nice IBM eserver xseries 226.</p>
<p>After I figured out that the CPU was, in fact, 64-bit capable (amd64/intel64 &#8211; EM64T), I went and downloaded the x86_64 version of FreeBSD 6.2, burned it on CD, popped it into the drive, and&#8230;.</p>
<p><strong>nothing</strong></p>
<p>Okay, nothing is an overstatement really, but as soon as it got to:</p>
<blockquote><p>ips0: resetting adapter, this may take up to 5 minutes</p></blockquote>
<p>The box completely froze, and nothing could persuade the thing to continue booting. (actually, even numlock didn&#8217;t work any more, which pretty much means that the box died trying.)</p>
<p>Now, no real harm done, the box isn&#8217;t production yet, and it has a good install in good old 32-bit mode, but I went ahead and e-mailed one of the developers for the ips driver (Scott Long), and told him about what I encountered. He confirmed that this was probably a 64-bit related bug, and would look into it. How is that for support?! (seriously, we are talking opensource, free of charge software here, and still I get a reply in a matter of a couple of hours! I don&#8217;t see certain commercial software houses doing that)</p>
<p>Anyhow, can&#8217;t wait to see what happens, because hey, what&#8217;s the use of having a perfectly good 64-bit cpu, if you are not going to use it to it&#8217;s full potential?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kluner.net/2007/02/12/xseries-226-freebsd-amd64intel64-b0rk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

