X-Git-Url: http://git.home-dn.net/?p=manu%2Fsuphp.git;a=blobdiff_plain;f=src%2FConfiguration.cpp;h=f2e9eba26943fdee782509f3d7c408d11106f38b;hp=a0ab793f7d5d692a024260926620a1d1934e73ca;hb=47bcf8ba77fa8011f9be728c23dbe6915d70251b;hpb=1d5c20a335c25ab89adf2e0d3d74c810b679e719 diff --git a/src/Configuration.cpp b/src/Configuration.cpp index a0ab793..f2e9eba 100644 --- a/src/Configuration.cpp +++ b/src/Configuration.cpp @@ -111,6 +111,7 @@ suPHP::Configuration::Configuration() { this->min_gid = 1; #endif this->umask = 0077; + this->chroot_path = ""; } void suPHP::Configuration::readFromFile(File& file) @@ -154,6 +155,8 @@ 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]", @@ -243,3 +246,7 @@ int suPHP::Configuration::getMinGid() const { int suPHP::Configuration::getUmask() const { return this->umask; } + +std::string suPHP::Configuration::getChrootPath() const { + return this->chroot_path; +}