Merge branch 'release/0.10' into develop

This commit is contained in:
Sebastian Messmer 2019-01-13 09:28:20 -08:00
commit 079a43df5f
1 changed files with 3 additions and 3 deletions

View File

@ -469,14 +469,14 @@ int Fuse::rmdir(const bf::path &path) {
}
}
int Fuse::symlink(const bf::path &from, const bf::path &to) {
int Fuse::symlink(const bf::path &to, const bf::path &from) {
#ifdef FSPP_LOG
LOG(DEBUG, "symlink({}, {})", from, to);
LOG(DEBUG, "symlink({}, {})", to, from);
#endif
try {
ASSERT(is_valid_fspp_path(from), "has to be an absolute path");
auto context = fuse_get_context();
_fs->createSymlink(from, to, context->uid, context->gid);
_fs->createSymlink(to, from, context->uid, context->gid);
return 0;
} catch(const cpputils::AssertFailed &e) {
LOG(ERR, "AssertFailed in Fuse::symlink: {}", e.what());