server: Keep a file descriptor open to the config directory to make sure we don't write the registry in the wrong place.
diff --git a/server/request.h b/server/request.h
index 283ad97..496c5ff 100644
--- a/server/request.h
+++ b/server/request.h
@@ -61,6 +61,7 @@
 extern void shutdown_master_socket(void);
 extern int wait_for_lock(void);
 extern int kill_lock_owner( int sig );
+extern int server_dir_fd, config_dir_fd;
 
 extern void trace_request(void);
 extern void trace_reply( enum request req, const union generic_reply *reply );