diff options
Diffstat (limited to 'backends/fs/chroot/chroot-fs-factory.cpp')
-rw-r--r-- | backends/fs/chroot/chroot-fs-factory.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/backends/fs/chroot/chroot-fs-factory.cpp b/backends/fs/chroot/chroot-fs-factory.cpp index 4030f4f502..fa98ab75d3 100644 --- a/backends/fs/chroot/chroot-fs-factory.cpp +++ b/backends/fs/chroot/chroot-fs-factory.cpp @@ -32,29 +32,29 @@ #include "backends/fs/posix/posix-fs-factory.h" ChRootFilesystemFactory::ChRootFilesystemFactory(Common::String root) { - _root = root; + _root = root; } AbstractFSNode *ChRootFilesystemFactory::makeRootFileNode() const { - return new ChRootFilesystemNode(_root, "/"); + return new ChRootFilesystemNode(_root, "/"); } AbstractFSNode *ChRootFilesystemFactory::makeCurrentDirectoryFileNode() const { - char buf[MAXPATHLEN]; - if (getcwd(buf, MAXPATHLEN) == NULL) { - return NULL; - } + char buf[MAXPATHLEN]; + if (getcwd(buf, MAXPATHLEN) == NULL) { + return NULL; + } - if (Common::String(buf).hasPrefix(_root + Common::String("/"))) { - return new ChRootFilesystemNode(_root, buf + _root.size()); - } + if (Common::String(buf).hasPrefix(_root + Common::String("/"))) { + return new ChRootFilesystemNode(_root, buf + _root.size()); + } - return new ChRootFilesystemNode(_root, "/"); + return new ChRootFilesystemNode(_root, "/"); } AbstractFSNode *ChRootFilesystemFactory::makeFileNodePath(const Common::String &path) const { - assert(!path.empty()); - return new ChRootFilesystemNode(_root, path); + assert(!path.empty()); + return new ChRootFilesystemNode(_root, path); } #endif |