diff -Naur -x '*.rej' -x '*.orig' -x '*~' bind-9.10.8-P1/bin/named/server.c bind-9.10.8-P1-rh693982/bin/named/server.c --- bind-9.10.8-P1/bin/named/server.c 2018-08-12 17:46:36.965176189 +0200 +++ bind-9.10.8-P1-rh693982/bin/named/server.c 2018-08-12 17:50:02.457502320 +0200 @@ -6717,15 +6717,6 @@ } /* - * Check that the working directory is writable. - */ - if (!isc_file_isdirwritable(".")) { - isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, - NS_LOGMODULE_SERVER, ISC_LOG_ERROR, - "the working directory is not writable"); - } - - /* * Configure the logging system. * * Do this after changing UID to make sure that any log @@ -6786,6 +6777,15 @@ } /* + * Check that the working directory is writable. + */ + if (!isc_file_isdirwritable(".")) { + isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, + NS_LOGMODULE_SERVER, ISC_LOG_ERROR, + "the working directory is not writable"); + } + + /* * Set the default value of the query logging flag depending * whether a "queries" category has been defined. This is * a disgusting hack, but we need to do this for BIND 8