fix rename'ing to local device

This commit is contained in:
Antonio SJ Musumeci 2014-06-24 16:13:49 -04:00
parent 3b6c74878c
commit ec38a9c783
2 changed files with 7 additions and 5 deletions

View file

@ -136,12 +136,12 @@ namespace fs
string
make_path(const string base,
const string fusepath)
const string suffix)
{
if(*base.rbegin() == '/' ||
*fusepath.rbegin() == '/')
return base + fusepath;
return base + '/' + fusepath;
if(suffix[0] == '/' ||
*base.rbegin() == '/')
return base + suffix;
return base + '/' + suffix;
}
bool