summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-29 18:23:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-29 18:31:48 +0300
commitddf44375dafe22ed92c2a5208a8313dd1b703d91 (patch)
tree373f6b3299750edd3d6882f57da8912ae676532a
parent4a9bc602219670ff44e0f12fd35f9976f93ad79c (diff)
downloadplus-ddf44375dafe22ed92c2a5208a8313dd1b703d91.tar.gz
plus-ddf44375dafe22ed92c2a5208a8313dd1b703d91.tar.bz2
plus-ddf44375dafe22ed92c2a5208a8313dd1b703d91.tar.xz
plus-ddf44375dafe22ed92c2a5208a8313dd1b703d91.zip
Mount perserver directory in macosx build.s20170529
-rw-r--r--src/dirs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dirs.cpp b/src/dirs.cpp
index 34d69d9bd..18005681e 100644
--- a/src/dirs.cpp
+++ b/src/dirs.cpp
@@ -208,9 +208,9 @@ void Dirs::mountDataDir()
fprintf(stderr, "Can't find Resources directory\n");
}
CFRelease(resourcesURL);
- // possible crash
- strncat(path, "/data", PATH_MAX - 1);
- VirtFs::mountDir(path, Append_false);
+ std::string path2 = pathJoin(path, "data");
+ VirtFs::mountDir(pathJoin(path2, "perserver/default"), Append_false);
+ VirtFs::mountDir(path2, Append_false);
// possible this need for support run client from dmg images.
// mPackageDir = path;
#endif // defined __APPLE__