this->allow_file_others_writeable = false;
this->allow_directory_others_writeable = false;
#ifdef OPT_DISABLE_CHECKPATH
- this->check_vhos_docroot = false;
+ this->check_vhost_docroot = false;
#else
this->check_vhost_docroot = true;
#endif
this->min_gid = 1;
#endif
this->umask = 0077;
+ this->chroot_path = "";
}
void suPHP::Configuration::readFromFile(File& file)
this->min_gid = Util::strToInt(value);
else if (key == "umask")
this->umask = Util::octalStrToInt(value);
+ else if (key == "chroot")
+ this->chroot_path = value;
else
throw ParsingException("Unknown option \"" + key +
"\" in section [global]",
int suPHP::Configuration::getUmask() const {
return this->umask;
}
+
+std::string suPHP::Configuration::getChrootPath() const {
+ return this->chroot_path;
+}