All posts in FreeBSD

My first open source contribution

Today, trying to kill the pains of my personal world, I found a bug and decided to submit a patch for the open source project postfixadmin. Below is this memorable, first contribution to the open source community:


Couldn’t find anywhere to post this, the svn-repos seems to be down and the bugtraq as well, so here it is in a mail – hope it’s usable!
I had problems connecting to a mysql 5.0.33 on another machine (via TCP) until i did this hack (don’t mind the file date stamps!):
[code lang=”diff”]
— Wed Mar 21 12:30:33 2007
+++ Wed Mar 21 12:23:16 2007
@@ -128,8 +128,9 @@ function escape_string ($string)
global $CONF;
if (get_magic_quotes_gpc () == 0)
+ $link = db_connect();
if ($CONF[‘database_type’] == “mysql”) $escaped_string = mysql_real_escape_string ($string);
– if ($CONF[‘database_type’] == “mysqli”) $escaped_string = mysqli_real_escape_string ($string);
+ if ($CONF[‘database_type’] == “mysqli”) $escaped_string = mysqli_real_escape_string ($link, $string);
if ($CONF[‘database_type’] == “pgsql”) $escaped_string = pg_escape_string ($string);

FreeBSD – my beloved


I managed to borrow a 2U server from a friend for the next couple of months, to help me migrate my production and refurnish my old servers, to prepare them for running our new superbusiness webportal. It’s equipped with an Intel Xeon 2.66 Ghz CPU, 2GB RAM and a 3ware 9500S-4LP SATA RAID controller. I only had to buy the disks of my choice, and then it’s playtime.

Of course it’s gonna be FreeBSD running the thing, and while playing around with it, i might as well update my FreeBSD howto.

Look at me, I’m like a little boy again 🙂

Me and the new server

My FreeBSD howto
My FreeBSD link collection