projects
/
manu
/
suphp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0.6.1-1 release
[manu/suphp.git]
/
src
/
Configuration.cpp
diff --git
a/src/Configuration.cpp
b/src/Configuration.cpp
index
a0ab793
..
f2e9eba
100644
(file)
--- a/
src/Configuration.cpp
+++ b/
src/Configuration.cpp
@@
-111,6
+111,7
@@
suPHP::Configuration::Configuration() {
this->min_gid = 1;
#endif
this->umask = 0077;
this->min_gid = 1;
#endif
this->umask = 0077;
+ this->chroot_path = "";
}
void suPHP::Configuration::readFromFile(File& file)
}
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);
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]",
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;
}
int suPHP::Configuration::getUmask() const {
return this->umask;
}
+
+std::string suPHP::Configuration::getChrootPath() const {
+ return this->chroot_path;
+}