return (result);
}
+ char cwd[PATH_MAX];
+ if (getcwd(cwd, sizeof(cwd)) == cwd) {
+ isc_log_write(NAMED_LOGCATEGORY_GENERAL, NAMED_LOGMODULE_SERVER,
+ ISC_LOG_INFO, "the working directory is now '%s'",
+ cwd);
+ }
+
return (ISC_R_SUCCESS);
}
&named_g_defaults) == ISC_R_SUCCESS);
}
+ /*
+ * Log the current working directory.
+ */
+ if (first_time) {
+ char cwd[PATH_MAX];
+ if (getcwd(cwd, sizeof(cwd)) == cwd) {
+ isc_log_write(NAMED_LOGCATEGORY_GENERAL,
+ NAMED_LOGMODULE_SERVER, ISC_LOG_INFO,
+ "the initial working directory is '%s'",
+ cwd);
+ }
+ }
+
/*
* Parse the configuration file using the new config code.
*/