~ubuntu-branches/debian/jessie/suphp/jessie

« back to all changes in this revision

Viewing changes to src/Configuration.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Emmanuel Lacour
  • Date: 2005-12-29 17:53:48 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051229175348-3whugesukld1sw5p
Tags: 0.6.1-1
* New upstream release 
* libtool update (closes: #342676)

Show diffs side-by-side

added added

removed removed

Lines of Context:
111
111
    this->min_gid = 1;
112
112
#endif
113
113
    this->umask = 0077;
 
114
    this->chroot_path = "";
114
115
}
115
116
 
116
117
void suPHP::Configuration::readFromFile(File& file) 
154
155
                this->min_gid = Util::strToInt(value);
155
156
            else if (key == "umask")
156
157
                this->umask = Util::octalStrToInt(value);
 
158
            else if (key == "chroot")
 
159
                this->chroot_path = value;
157
160
            else 
158
161
                throw ParsingException("Unknown option \"" + key + 
159
162
                                       "\" in section [global]", 
243
246
int suPHP::Configuration::getUmask() const {
244
247
    return this->umask;
245
248
}
 
249
 
 
250
std::string suPHP::Configuration::getChrootPath() const {
 
251
    return this->chroot_path;
 
252
}