From d8154144b1cbf25dd7e41f6e375426554fca055a Mon Sep 17 00:00:00 2001 From: Peter Baumann Date: Thu, 30 Jul 2009 18:59:52 +0200 Subject: PB: use CONFDIR for config file access; make sure there is no path buffer oflo --- rasmgr/rasmgr_config.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rasmgr/rasmgr_config.hh') diff --git a/rasmgr/rasmgr_config.hh b/rasmgr/rasmgr_config.hh index e8e7288..7ed1a99 100644 --- a/rasmgr/rasmgr_config.hh +++ b/rasmgr/rasmgr_config.hh @@ -39,6 +39,7 @@ rasdaman GmbH. #include #include #include +#include // PATH_MAX #include "commline/cmlparser.hh" @@ -85,9 +86,9 @@ class Configuration char publicHostName[HOSTNAME_SIZE]; // usually ==hostName, but you might want to publish IP address or hostname.domainname instead int listenPort; // name of configuration file - char configFileName[HOSTNAME_SIZE]; + char configFileName[PATH_MAX]; // name of alternate configuration file for rescue save, generated by saveAltConfigFile() - char altConfigFileName[HOSTNAME_SIZE]; + char altConfigFileName[PATH_MAX]; // if slave char masterName[HOSTNAME_SIZE]; -- cgit