From bob@Air.EmRav.Com  Thu Dec  4 11:19:55 2003
Return-Path: <bob@Air.EmRav.Com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id BEDAA16A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Dec 2003 11:19:55 -0800 (PST)
Received: from Air.EmRav.Com (air.emrav.com [69.49.194.234])
	by mx1.FreeBSD.org (Postfix) with ESMTP id AB08C43FE5
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  4 Dec 2003 11:19:54 -0800 (PST)
	(envelope-from bob@Air.EmRav.Com)
Received: from Air.EmRav.Com (localhost [127.0.0.1])
	by Air.EmRav.Com (8.12.8p2/8.12.8) with ESMTP id hB4JJrDp009239
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 4 Dec 2003 13:19:53 -0600 (CST)
	(envelope-from bob@Air.EmRav.Com)
Received: (from bob@localhost)
	by Air.EmRav.Com (8.12.8p2/8.12.8/Submit) id hB4JJqrC009238;
	Thu, 4 Dec 2003 13:19:52 -0600 (CST)
Message-Id: <200312041919.hB4JJqrC009238@Air.EmRav.Com>
Date: Thu, 4 Dec 2003 13:19:52 -0600 (CST)
From: Bob Van Valzah <Bob@VanValzah.Com>
Reply-To: Bob Van Valzah <Bob@VanValzah.Com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Jabber deamon won't run if hostname is mixed case
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         59961
>Category:       ports
>Synopsis:       Jabber deamon won't run if hostname is mixed case
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    seanc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 04 11:30:09 PST 2003
>Closed-Date:    Mon Jul 05 22:06:15 GMT 2004
>Last-Modified:  Mon Jul 05 22:06:15 GMT 2004
>Originator:     Bob Van Valzah
>Release:        FreeBSD 4.8-RELEASE-p7 i386
>Organization:
EmRav.Com
>Environment:
System: FreeBSD Air.EmRav.Com 4.8-RELEASE-p7 FreeBSD 4.8-RELEASE-p7 #0: Sat Sep 20 11:02:09 CDT 2003 bob@Air.EmRav.Com:/usr/obj/usr/src/sys/TWINHEAD i386


Jabber port version 1.4.2

>Description:

If hostname contains mixed case, jabber daemon can't deliver messages.
Apparently this is because the hostname is internally lower cased
and compared against what's supplied on the command line with the
-H option from jabberd.sh.  It's possible that this happens only
with mixed-case, fully-qualified domain names.

>How-To-Repeat:

Start up jabberd and try to deliver a message with a client.  You get a
message like this:

	20031204T18:28:36: [notice] (air.emrav.com): bouncing a routed packet to bob@air.emrav.com from 14@c2s/80DC280: Internal Delivery Error

>Fix:

Apply the following patch to jabberd.sh as distributed with the port:

--- /usr/local/etc/rc.d/jabberd.sh	Thu Dec  4 12:35:39 2003
+++ /usr/ports/net/jabber/files/jabberd.sh	Sun Sep  1 03:20:31 2002
@@ -7,7 +7,7 @@
 
 USER="jabber"
 RUNDIR="/var/tmp"
-HOSTNAME=`/bin/hostname | tr '[A-Z]' '[a-z]'`
+HOSTNAME=`/bin/hostname`
 
 test -x ${PREFIX}/sbin/jabberd || exit 1
 
While you're fixing jabberd.sh, might be a good idea for the jabberd
port to be consistent with others like apache.  The port could install
the startup script into jabberd.sh-dist and also copy this into
jabberd.sh if one didn't already exist.  That'd allow for the
preservation of local initialization changes across portupgrades.

	Thanks!

	Bob
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->seanc 
Responsible-Changed-By: pav 
Responsible-Changed-When: Thu Dec 4 14:54:28 PST 2003 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59961 
State-Changed-From-To: open->closed 
State-Changed-By: vs 
State-Changed-When: Mon Jul 5 22:05:25 GMT 2004 
State-Changed-Why:  
Committed with ports/66307. Thanks for your submission! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=59961 
>Unformatted:
