diff options
author | Peter Baumann <baumann@floridita.rasdaman> | 2009-07-30 18:59:52 +0200 |
---|---|---|
committer | Peter Baumann <baumann@rasdaman.org> | 2009-07-30 18:33:40 +0200 |
commit | d8154144b1cbf25dd7e41f6e375426554fca055a (patch) | |
tree | dbc15af2f29bccb4db78e8d89d5ad32cbff8d5bc /rasmgr/rasmgr_config.hh | |
parent | f5bac542b5dacb37a85324d020a17334e2b602a4 (diff) | |
download | rasdaman-upstream-d8154144b1cbf25dd7e41f6e375426554fca055a.tar.gz rasdaman-upstream-d8154144b1cbf25dd7e41f6e375426554fca055a.tar.xz rasdaman-upstream-d8154144b1cbf25dd7e41f6e375426554fca055a.zip |
PB: use CONFDIR for config file access; make sure there is no path buffer oflo
Diffstat (limited to 'rasmgr/rasmgr_config.hh')
-rw-r--r-- | rasmgr/rasmgr_config.hh | 5 |
1 files changed, 3 insertions, 2 deletions
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 <iostream> #include <string> #include <sys/time.h> +#include <linux/limits.h> // 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]; |