mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 11:56:31 -05: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 "config.hpp"
|
||||
#include "errno.hpp"
|
||||
#include "fs_base_symlink.hpp"
|
||||
#include "fs_clonepath.hpp"
|
||||
#include "fs_path.hpp"
|
||||
#include "rv.hpp"
|
||||
|
|
@ -31,7 +32,6 @@
|
|||
|
||||
using std::string;
|
||||
using std::vector;
|
||||
using mergerfs::Policy;
|
||||
using namespace mergerfs;
|
||||
|
||||
static
|
||||
|
|
@ -56,7 +56,7 @@ _symlink_loop_core(const string &existingpath,
|
|||
|
||||
fs::path::make(&newbasepath,newpath,fullnewpath);
|
||||
|
||||
rv = ::symlink(oldpath,fullnewpath.c_str());
|
||||
rv = fs::symlink(oldpath,fullnewpath);
|
||||
|
||||
return error::calc(rv,error,errno);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue