http://www.berklix.com/~jhs/~/src/bsd/fixes/freebsd/src/jhs/contrib/bind9/bin/named/

This patch to make clear what directory an error message refers to.
(Bind code is imported code, not FreeBSD code,
so a question of where this should be sent to ? & this patch should not be
commited as is anyway, it was just to debug Bind.

On both host=fire REL=8.0 & host=blak REL=8.2
I kept seeing in /var/log/messages:
        named[851]: the working directory is not writable
I didnt know which directory it was complaining about,
ls -l /etc/namedb
	 -> /var/named/etc/namedb 
cd /etc/namedb ; ls -la
        drwxr-xr-x  6 root  wheel    512 May 27 10:51 ./
        drwxr-xr-x  3 root  wheel    512 Mar  5 17:59 ../
find . -type d
cd etc/namedb/working
ls -la
	drwxr-xr-x  2 bind  wheel  512 Feb 17 03:18 ./
	drwxr-xr-x  6 root  wheel  512 May 27 10:51 ../
cd /etc/namedb ; /bin/pwd	# /var/named/etc/namedb
chown bind:bind .
/usr/sbin/named -4 -t /var/named -u bind -f -d 4 -g > & /tmp/t
	no more complaint of the working directory is not writable
So I ran chown bind:bind on           
	/site/domain/js.berklix.net/etc/namedb          &
	/site/domain/berklix/etc/namedb 

bind has been removed from FreeBSD-10 src/ so JJLATER I need to 
copy & hack a patch for ports/

*** 8.2-RELEASE/src/contrib/bind9/bin/named/server.c	Wed Dec  8 20:59:53 2010
--- new/src/contrib/bind9/bin/named/server.c	Fri May 27 12:23:28 2011
***************
*** 2547,2552 ****
--- 2547,2559 ----
  	 */
  	directory = cfg_obj_asstring(obj);
  
+ #define JHSJHS
+ #ifdef JHSJHS
+ 	// printf("jhsjhs printf directory before chdir: %s\n",directory); 
+ 	cfg_obj_log(obj, ns_g_lctx, ISC_LOG_WARNING,
+ 		"jhsjhs cfg directory before chdir: %s", directory);
+ #endif
+ 
  	if (! isc_file_ischdiridempotent(directory))
  		cfg_obj_log(obj, ns_g_lctx, ISC_LOG_WARNING,
  			    "option 'directory' contains relative path '%s'",
***************
*** 3461,3466 ****
--- 3468,3478 ----
  		isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL,
  			      NS_LOGMODULE_SERVER, ISC_LOG_ERROR,
  			      "the working directory is not writable");
+ #ifdef JHSJHS
+ 	// fprintf(stderr,"jhsjhs printf current working directory is %s\n", getwd(NULL) ) ;
+ 	cfg_obj_log(obj, ns_g_lctx, ISC_LOG_WARNING,
+ 		"jhsjhs cfg current working directory is %s", getwd(NULL) ) ;
+ #endif
  	}
  
  	/*
