mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
limit need to explicitly call .c_str()
This commit is contained in:
parent
7b4e1ea36d
commit
e93c946198
8 changed files with 96 additions and 10 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "fs_base_mkdir.hpp"
|
||||
#include "fs_base_stat.hpp"
|
||||
#include "fs_base_utime.hpp"
|
||||
#include "fs_clonepath.hpp"
|
||||
#include "fs_path.hpp"
|
||||
#include "fs_xattr.hpp"
|
||||
|
||||
|
|
@ -62,7 +63,7 @@ namespace fs
|
|||
fs::path::dirname(dirname);
|
||||
if(!dirname.empty())
|
||||
{
|
||||
rv = fs::clonepath(fromsrc,tosrc,dirname.c_str());
|
||||
rv = fs::clonepath(fromsrc,tosrc,dirname);
|
||||
if(rv == -1)
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -105,4 +106,12 @@ namespace fs
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
clonepath(const std::string &from,
|
||||
const std::string &to,
|
||||
const std::string &relative)
|
||||
{
|
||||
return fs::clonepath(from,to,relative.c_str());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue