forked from 0ad/0ad
fix: mustn't create directories during mount's vfs path traversal (because they may not be associated with a directory, especially in the common case of mounting into the root directory)
fixes #459 This was SVN commit r7378.
This commit is contained in:
parent
a5b8ec6028
commit
d1c5119694
@ -58,7 +58,7 @@ public:
|
||||
}
|
||||
|
||||
VfsDirectory* directory;
|
||||
CHECK_ERR(vfs_Lookup(mountPoint, &m_rootDirectory, directory, 0, VFS_LOOKUP_ADD|VFS_LOOKUP_CREATE));
|
||||
CHECK_ERR(vfs_Lookup(mountPoint, &m_rootDirectory, directory, 0, VFS_LOOKUP_ADD));
|
||||
PRealDirectory realDirectory(new RealDirectory(path, priority, flags));
|
||||
RETURN_ERR(vfs_Attach(directory, realDirectory));
|
||||
return INFO::OK;
|
||||
|
Loading…
Reference in New Issue
Block a user