summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/fsdir.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-16 02:41:29 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-16 02:41:29 +0300
commitcfb75b015a4e70843e571ce599e11bf2990abc1b (patch)
tree6ad173a6e0343364fc5ee747171f652b49ff4cce /src/fs/virtfs/fsdir.cpp
parent24bd6a6d26bab89126db7183bb693779a1742c6d (diff)
downloadmv-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.gz
mv-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.bz2
mv-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.xz
mv-cfb75b015a4e70843e571ce599e11bf2990abc1b.zip
Add subdir support into VirtFs::getRealDir.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r--src/fs/virtfs/fsdir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp
index f7642c72c..39c26b1b0 100644
--- a/src/fs/virtfs/fsdir.cpp
+++ b/src/fs/virtfs/fsdir.cpp
@@ -168,12 +168,12 @@ namespace FsDir
}
bool getRealDir(FsEntry *restrict const entry,
- const std::string &filename,
- const std::string &dirName A_UNUSED,
+ std::string filename,
+ std::string dirName A_UNUSED,
std::string &realDir)
{
DirEntry *const dirEntry = static_cast<DirEntry*>(entry);
- if (Files::existsLocal(dirEntry->root + filename))
+ if (Files::existsLocal(dirEntry->root + entry->subDir + filename))
{
realDir = dirEntry->userDir;
return true;