stop auto calculating and storing fullpath in policies

This commit is contained in:
Antonio SJ Musumeci
2015-07-03 10:40:47 -04:00
parent 0c60701b29
commit b2cd79154a
37 changed files with 278 additions and 259 deletions
+4 -2
View File
@@ -47,7 +47,7 @@ _chmod(Policy::Func::Action actionFunc,
{
int rv;
int error;
Paths paths;
vector<string> paths;
rv = actionFunc(srcmounts,fusepath,minfreespace,paths);
if(rv == -1)
@@ -56,7 +56,9 @@ _chmod(Policy::Func::Action actionFunc,
error = 0;
for(size_t i = 0, ei = paths.size(); i != ei; i++)
{
rv = ::chmod(paths[i].full.c_str(),mode);
fs::path::append(paths[i],fusepath);
rv = ::chmod(paths[i].c_str(),mode);
if(rv == -1)
error = errno;
}